Escape quotes while spliting string in javascript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1293147/javascript-code-to-parse-csv-data">Javascript code to parse CSV data</a>  </p>
</blockquote>



<p>Simple and straight, if I have a string like: 1001,"abc, xyz", 34</p>

<p>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.</p>

<p>So my final outcome should be:</p>

<pre><code>1001
abc, xyz
34
</code></pre>

<p>What should I use inside split(), so that I can get expected output?</p>
