I have seen many links for floating point number validation but none of them for precision.
only floating point number validation
I want the field to display error if the input is 1234.31 or . but not for 123.5555555 or .3433 or.9022. I need the rules to be specified to get 0 to 3 digit before decimal. I tried
/^[^+-][0-9]{0,3}[.]?[0-9]{0,2}/
But it didn't work.