title: Need a regex to be used in Javascript
body: <p>I need a regex which will allow me to</p>
  
  <p>1) allow only numbers <strong>[solved]</strong></p>
  
  <p>2) decimal up to 2 places <strong>[solved]</strong></p>
  
  <p>3) allow only 1 zero at the beginning example : '0.12' <strong>=> need help on this</strong></p>
  
  <p>4) not allow only zeros example : '0000' <strong>=> need help on this</strong></p>
  
  <p>Below is the regex I currently have which allows only numbers and 2 places after a decimal:</p>
  
  <p><code>Regex:  /^\s*(?=.*[1-9])\d*(?:\.\d{0,2})?\s*$/g</code></p>
  
  <p>Thanks in advance</p>