title: Javascript: Splitting a string by comma but ignoring commas in quotes
body: <p>I have a string like following</p>
  
  <pre><code>var str="A,B,C,E,'F,G,bb',H,'I9,I8',J,K"
  </code></pre>
  
  <p>I'd like to split the string on commas. However, in the case where something is inside single quotation marks, I need it to both ignore commas as following.</p>
  
  <pre><code> A
   B
   C
   E
   F,G,bb
   H
   I9,I8
   J
   K
  </code></pre>