title: Regular expression to match dollar amounts
body: <p>Could anybody provide me the regular expression for the following patterns?</p>
  
  <p>$1234</p>
  
  <p>$31234.3</p>
  
  <p>$1234.56</p>
  
  <p>$123456.78</p>
  
  <p>$.99</p>
  
  <p>My requirement is the digits before decimal should not exceed 6 and after the decimal point it should not exceed 2 digits. Please help me. Thanks in advance..</p>