title: Regular expression for price validation
body: <p>Need regular expression which have: </p>
  
  <ol>
  <li>Maximum 8 digits before decimal(.) point</li>
  <li>Maximum 4 digits after decimal point</li>
  <li>Decimal point is optional </li>
  </ol>
  
  <p>Maximum valid decimal is 8 digits before decimal and 4 digits after decimal 
  So 99999999.9999</p>
  
  <p>The regular rexpression I have tried <strong>^\d{0,8}[.]?\d{1,4}$</strong> is failing for 123456789 
  and more than this. means it is taking more than 8 digits if decimal point is not available. </p>
  
  <p>Tested here : <a href="http://regexpal.com/" rel="noreferrer">http://regexpal.com/</a></p>
  
  <p>Many many thanks in advance!</p>