title: Javascript regex splitting words in a comma separated string
body: <p>I am trying to split a comma separated string using regex.</p>
  
  <pre><code>var a = 'hi,mr.007,bond,12:25PM'; //there are no white spaces between commas
  var b = /(\S+?),(?=\S|$)/g;
  b.exec(a); // does not catch the last item.
  </code></pre>
  
  <p>Any suggestion to catch all the items.</p>