Expression ^\d{0,2}(\.\d{1,2})?$
Description This regular expression validates that the data entered is a number with a maximum of two integers and two decimals and a minimum of one integer or one decimal.
Matches 99.99 | 99 | .99
Non-Matches 999.999 | 999 | .999
Friday, November 20, 2009
Subscribe to:
Posts (Atom)