2 Replies Latest reply: Mar 18, 2014 2:47 AM by coco RSS

    Java Regular Expression

    coco

      Hi,

       

      Can you help me how to replace all the commad that is found on a string between 2 double quotes?

      for example I have a text file that contains data like as following

       

      A,"-16,12","-178,245","-15,506"

      B,"-16,12","-178,245","-15,506"

      C,0, 0,1

       

      I need an output like this:

       

      A,"-16.12","-178.245","-15.506"

      B,"-16.12","-178.245","-15.506"

      C,0, 0,1

       

      I did this but without regular expression. It seems to me that a regular expression it's more elegant than to parse every line and replace it.

       

      Thank you