Question
Regular Expressions
I'm trying to take out surrounding quotes and 1000s
seperators from numbers 0 to just under one trillion. In DW I can
search for
,"\$(\d*),(\d*),(\d*),(\d*.\d*)"|,"\$(\d*),(\d*),(\d*.\d*)"|,"\$(\d*),(\d*.\d*)"|,\$(\d*.\d*)
and replace it with
,$1$2$3$4$5$6$7$8$9$10
no problem, but when I try
rereplace(my_cell,',"\$(\d*),(\d*),(\d*),(\d*.\d*)"|,"\$(\d*),(\d*),(\d*.\d*)"|,"\$(\d*),(\d*.\d*)"|,\$(\d*.\d*)', ',$1$2$3$4$5$6$7$8$9$10','ALL') in CF8 I get output like:
A0B36,$1$2$3$4$5$6$7$8$9$10
A0B45, $612,702.31
which is clearly incorrect. I am new at regular expressions, but if it's working in DW, I suspect I'm messing up the function somehow. Please help!
,"\$(\d*),(\d*),(\d*),(\d*.\d*)"|,"\$(\d*),(\d*),(\d*.\d*)"|,"\$(\d*),(\d*.\d*)"|,\$(\d*.\d*)
and replace it with
,$1$2$3$4$5$6$7$8$9$10
no problem, but when I try
rereplace(my_cell,',"\$(\d*),(\d*),(\d*),(\d*.\d*)"|,"\$(\d*),(\d*),(\d*.\d*)"|,"\$(\d*),(\d*.\d*)"|,\$(\d*.\d*)', ',$1$2$3$4$5$6$7$8$9$10','ALL') in CF8 I get output like:
A0B36,$1$2$3$4$5$6$7$8$9$10
A0B45, $612,702.31
which is clearly incorrect. I am new at regular expressions, but if it's working in DW, I suspect I'm messing up the function somehow. Please help!
