Regex in Javascript for validating decimal number
<p>I want regex in javascript for validating number 10.89.
It should allow 10.89 and should not allow 10.899 i.e. it should allow only upto two decimal places.
It should allow only one period i.e. '.' 10.89 and restrict 10.8.9 .</p>
