The question is a little confusing, so I will explain with an example. I am not using any language in particular.
I have the following string:
0,1,"foo","blue,yellow,red",27
I need to create an array of these comma-delimited values, but as you can see, the forth item (index 3) is a string with quotes that also contains commas.
I need to get that string as one value, with the quotes intact like so:
[0, 1, "foo", "blue,yellow,red", 27]
Splitting on the commas wont help me, as it will also split the string item. How would I go about parsing this comma-delimited string into the list of items.