Possible Duplicate:
Javascript code to parse CSV data
Simple and straight, if I have a string like: 1001,"abc, xyz", 34
I want it to split into 3 strings not 4. If I use split(','), it splits abc and xyz into two strings however I want it as a single string as it is inside double quotes.
So my final outcome should be:
1001
abc, xyz
34
What should I use inside split(), so that I can get expected output?