regex to remove comma between double quotes notepad++

前端 未结 4 2047
刺人心
刺人心 2020-12-05 05:50

I am trying to remove commas inside double quotes from a csv file in notepad++, this is what I have:

1070,17,2,GN3-670,\"COLLAR B, M STAY\",\"2,606.45\"
         


        
4条回答
  •  渐次进展
    2020-12-05 06:31

    Just an update to @zx81's brilliant solution. Lets say you have 2commas between quotes

    Then the regex search has to be modified as follows:

    ("[^",]+),([^",]+),([^"]+")
    

    Replace needs to be modified as

    $1$2$3
    

    So on modify it depending on the # of commas.

    I tried exploring to see if recursive regex was possible but the does not seem to be possible as of now

提交回复
热议问题