Replace comma between quotes in CSV with Regex

前端 未结 3 781
南旧
南旧 2021-01-20 12:16

We have for example a string like this:

\"COURSE\",247,\"28/4/2016 12:53 Europe/Brussels\",1,\"Verschil tussen merk, product en leveranciersverantwoordelijke         


        
3条回答
  •  北海茫月
    2021-01-20 12:32

    1. Read the file using a CSV reader.
    2. Replace the commas in each field.
    3. Write the file using a CSV writer.

    You don’t need regular expressions for this task.

提交回复
热议问题