I have this line as an example from a CSV file:
2412,21,"Which of the following is not found in all cells?","Curriculum","Life and Living Processes, Life Processes",,,1,0,"endofline"
I want to split it into an array. The immediate thought is to simply divide by commas, but some of the lines have commas in them, for example, "Life and Life Processes, Life Processes", and they should remain the same elements in the array. We also note that there are two commas between which there is nothing - I want to get them as empty lines.
In other words, the array I want to get is
[2412,21,"Which of the following is not found in all cells?","Curriculum","Life and Living Processes, Life Processes","","",1,0,"endofline"]
I can think of hacking methods related to eval, but I hope someone can come up with a clean regex to do this ...
cheers max