Removing in-field quotes in csv file

后端 未结 3 733
心在旅途
心在旅途 2021-01-29 04:43

Let\'s say we have a comma separated file (csv) like this:

\"name of movie\",\"starring\",\"director\",\"release year\"
\"dark knight rises\",\"christian bale,          


        
3条回答
  •  别那么骄傲
    2021-01-29 04:59

    Split the values into an array. Iterate through the array removing any quotes, other than the first and last character. Hope it helps.

提交回复
热议问题