Skip to content
Prev 373426 / 398500 Next

Help with regular expressions

gsub( "([(]\\d+)([,])(\\d+[)])", "\\1.\\3", x)\
#-----------
[1] "ITERATION              ,THETA1                 ,THETA2                 ,THETA3                 ,THETA4                 ,THETA5                 ,THETA6         ,THETA7                 ,SIGMA(1.1)             ,SIGMA(2.1)             ,SIGMA(2.2)"
David Winsemius
Alameda, CA, USA

'Any technology distinguishable from magic is insufficiently advanced.'   -Gehm's Corollary to Clarke's Third Law