title: preg_match only nummber, spaces and currency format allowed
body: <p>In my php i use preg_match to validate input texts. The textbox used for currency value like 5000, or 5000.00 or can accept blank.</p>
  
  <pre><code> $pattrn="/^[0-9]{10}$/";
  </code></pre>
  
  <p>By using this it can validate number only.
  How to filter this input using preg_match ?</p>