title: Javascript Regexp for all numeric and decimal point format
body: <p>i'd like to make a javascript validation that will accept all numeric and decimal point format.</p>
  
  <p>For example :<br>
  1,000,000.00 is OK<br>
  1.000.000,00 is OK</p>
  
  <p>1.000,000.00 is not OK<br>
  1.000,000,00 is not OK<br>
  1,000.000,00 is not OK<br>
  1,000.000.00 is not OK</p>
  
  <p>Based on what i got here is :<br>
  <code>/^[1-9][0-9]{0,2}(,[0-9]{3})*(\.[0-9]{2})?$/</code> is only valid for 1,000,000.00 not for 1.000.000,00</p>
  
  <p>How can i validate both format ?</p>
  
  <p><strong>Updated :</strong></p>
  
  <p>What if the thousand points are not compulsory such as :<br>
  1000000.00 is OK or<br>
  1000000,00 is OK</p>