title: Question about ,(?=(?:[^']*'[^']*')*[^']*$)
body: <p><a href="https://stackoverflow.com/questions/3147836/c-regex-split-commas-outside-quotes">C# Regex Split - commas outside quotes</a></p>
  
  <pre><code>var result = Regex.Split(samplestring, ",(?=(?:[^\"]*\"[^\"]*')*[^\"]*$)");
  </code></pre>
  
  <p>I have problems to understand how it works.</p>
  
  <p>Specifically, I don't know what the * matches here?</p>
  
  <pre><code>",(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)")
                       ^
  </code></pre>
  
  <p>Does it mean</p>
  
  <p>there are 0 or more of <code>(?=(?:[^\"]*\"[^\"]*')</code></p>
  
  <p><strong>update for a sample input</strong></p>
  
  <pre><code>2,1016,7/31/2008 14:22,Geoff Dalgas,6/5/2011 22:21,http://stackoverflow.com,"Corvallis, OR",7679,351,81,b437f461b3fd27387c5d8ab47a293d35,34
  </code></pre>
  
  <p>Use the following code to test:</p>
  
  <pre><code>string samplestring = "2,1016,7/31/2008 14:22,Geoff Dalgas,6/5/2011 22:21,http://stackoverflow.com,\"Corvallis, OR\",7679,351,81,b437f461b3fd27387c5d8ab47a293d35,34";
  </code></pre>