title: JS regexp to split string based on character not preceded by backslash
body: <p>I want to use the JS String <code>split</code> function to split this string based only on the commas <code>,</code>, and not the commas preceded by backslashes <code>/,</code>. How can I do this?</p>
  
  <pre><code>'this,is\,a,\,string'.split(/,/)
  </code></pre>
  
  <p>This code splits it on all strings, I'm not sure how to get it to split just on the commas not preceded by backslashes.</p>