title: Decimal with or without commas regular expression
body: <p>I am trying to write a regular expression that allows decimals with or without commas.</p>
  
  <p>I have -</p>
  
  <pre><code>^[0-9]*((,\d{3})?(,\d{3})?(,\d{3})?)*(\.[0-9]{1,10})?$ 
  </code></pre>
  
  <p>which seems to work in reg ex tester, but when I put it in my code it doesn't work.  If fails for 1,000.00, but not 1,000</p>
  
  <p>I need it to accept 1, 1000, 1000.00, 1,000,000.123, 1223.456, 1,000,123.928 etc.</p>