title: How to restrict ExtJs Textfield to accept only numbers using maskRe . (Should accept Positive , Negative , integer and decimal numbers.)
body: <p>I need to configure my ExtJs textfield to accept only numbers which can be positive , negative , integer and decimals upto 2 decimals . I tried with <code>maskeRe</code> and regular expression <code>/^-?[0-9]\d*(\.\d+)?$/</code> . But its accepting only positive integers.  User should not be able to type restricted characters. Also it should accept '-' only at first place and '.' in between and only once. </p>
  
  <p>So it should accept :
  10, 
  -10, 
  10.12, 
  -10.34 etc</p>
  
  <p><a href="https://fiddle.sencha.com/#view/editor&amp;fiddle/1kvg" rel="nofollow noreferrer">Link to my fiddle</a> </p>
  
  <p>Thanks</p>