I have a large csv export where the columns do not align because some values are accidentally put in multiple cells instead of one. Fortunately, the values lay between two unique strings. I am hoping to use regex to merge these values into one cell. Sample data is as follows:
"apple","NULL","0","0","0",",","1",",","fruit","red","sweet","D$","object"
"horse","NULL","0","0","0",",","1",",","animal","large","tail","D$","object"
"Los Angeles","NULL","0","0","0",",","1",","city","California","smoggy","entertainment","D$","location"
The unmerged values begin after
"NULL","0","0","0",",","1",",","
And the unmerged values end before
","D$"
I'm trying to figure out a regex that would remove the "," between the values to merge them, so the output would look like:
"apple","NULL","0","0","0",",","1",",","fruit,red,sweet","D$","object"
"horse","NULL","0","0","0",",","1",",","animal,large,tail","D$","object"
"Los Angeles","NULL","0","0","0",",","1",",","city,California,smoggy,entertainment","D$","location"