title: Regular expression for Number with a hyphen and a decimal
body: <p>Can I have a regular expression for validate below mentioned type number in javascript and ExtJS.</p>
  
  <pre><code>555-56866.9
  </code></pre>
  
  <p>I tried this <code>/^[0-9]+(-?[0-9])?(.?[0-9])?/g</code> but it didn't work exactly the way I want.</p>