title: split a comma-separated string with both quoted and unquoted strings
body: <p>I have the following comma-separated string that I need to split. The problem is that some of the content is within quotes and contains commas that shouldn't be used in the split.</p>
  
  <p>String:</p>
  
  <pre><code>111,222,"33,44,55",666,"77,88","99"
  </code></pre>
  
  <p>I want the output:</p>
  
  <pre><code>111  
  222  
  33,44,55  
  666  
  77,88  
  99  
  </code></pre>
  
  <p>I have tried this:  </p>
  
  <pre><code>(?:,?)((?&lt;=")[^"]+(?=")|[^",]+)   
  </code></pre>
  
  <p>But it reads the comma between "77,88","99" as a hit and I get the following  output:  </p>
  
  <pre><code>111  
  222  
  33,44,55  
  666  
  77,88  
  ,  
  99  
  </code></pre>