title: How can I create a Regex that only lets in comma separated numbers?
body: <p>I want my user to be able to add multiple numeric values separated by commas. For example,</p>
  <p><strong>Allowed Strings</strong></p>
  <pre><code>1,2,3
  .1,2.0,3.,
  </code></pre>
  <p><strong>Not Allowed</strong></p>
  <pre><code>1,,2..3
  1,2,.,3,.
  </code></pre>
  <p>I have this so far:</p>
  <pre class="lang-bash prettyprint-override"><code>/(\.?)(\d+)(,?)/g
  </code></pre>
  <p>As a bonus, I would also like to have the regex that I could give to the JS match method which will give me an array of the values entered by the user.</p>