title: Regex to validate numbers before and after decimal excluding comma
body: <p>I am trying to validate decimal number of 13 digit before and 4 digit after dot excluding comma , i.e comma shouldn't be counted as a digit.</p>
  
  <p><strong>Valid Cases</strong></p>
  
  <pre><code>1,234,567,890,123.1234
  
  1234567890123.1234
  
  123456789012.1234
  
  1234567890123.123
  
  12345.123
  
  1.2
  
  0
  </code></pre>
  
  <p><strong>In Valid Cases</strong></p>
  
  <pre><code>12345abc.23 // string or special characters  not allowed
  
  1,234,567,890,1231.1234
  
  1,234,567,890,123.12341
  
  12345678901231.1234
  
  1234567890123.12341
  </code></pre>
  
  <p><strong>Current Regex</strong></p>
  
  <pre><code>^[0-9]{1,13}(\.[0-9]{0,4})?$
  </code></pre>
  
  <p>The current <code>Regex</code> is counting comma as a digit.</p>
  
  <p>Any help would be great.</p>