title: Regular expression to match decimals with or without leading zeros
body: <pre><code>^([0-9]*[1-9][0-9]*(\.[0-9]+)?|[0]+\.[0-9]*[1-9][0-9]*)$
  </code></pre>
  
  <p>I don't know regular expression well.
  Above regular expression does not allow input .2 .but it allows all other decimals like 0.2 , 0.02 etc . I need to make this expression allow the number like .2 ,.06 , etc.....</p>