If regex validation is ^\d{0,10}(\.\d{0,2})?$
, then maximum two digits are required after decimal which is optional.
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
0
in{0,2}
means? – chepner