title: How do I include negative decimal numbers in this regular expression?
body: <p>How do I match negative numbers as well by this regular expression?  This regex works fine with positive values, but I want it to also allow negative values e.g. -10, -125.5 etc. </p>
  
  <pre><code>^[0-9]\d*(\.\d+)?$
  </code></pre>
  
  <p>Thanks</p>