title: Make decimal digits mandatory if dot entered in regex validation
body: <p>If regex validation is <code>^\d{0,10}(\.\d{0,2})?$</code>, then maximum two digits are required after decimal which is optional.</p>
  
  <p>But it allows "100." also. since the user has not entered any digit after decimal, how to validate and make decimal digits required if dot is entered</p>