title: RegEx to match comma separated numbers with optional decimal part
body: <p>I've a regex that matches comma separated numbers with an optional two digit decimal part in a given multiline text.</p>
  
  <pre><code>/(?&lt;=\s|^)\d{1,3}(,\d{3})*(\.\d{2})?(?=\s|$)/m
  </code></pre>
  
  <p>It matches strings like 1, 12, 12.34, 12,345.67 etc successfully. How can I modify it to match a number with only the decimal part like <code>.23</code>?</p>
  
  <p>EDIT: Just to clarify - I would like to modify the regex so that it matches <code>12</code>, <code>12.34</code> and <code>.34</code></p>
  
  <p>And I am looking for 'stand alone' valid numbers. i.e., number-strings whose boundaries are either white space or start/end of line/string.</p>