4 Replies Latest reply: Jan 22, 2009 12:16 PM by kodemonki RSS

    Regular Expressions

    kodemonki Community Member
      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!