Hello
I need a valid regex for validating a input field, that goes from 0 to 20 with 3 decimal places, with comma as a decimal delimiter.
This is for people stating their grade at a certain discipline.
from 0,000 to 20,000, should be ok, negative and over 20,000 (ex 20,001+) should put the warning in the input field bold.
The regex i tried is this
^([0-9]\,[0-9][0-9])?$|(1[0-9]\,[0-9][0-9])?$|(20\,[0-9][0-9])?$
On this site, http_s://regex101.com/r/bQ5sM4/12
Seems to validate, but when placed here:
fails the warning
Thx for the help in advance
Best regards
Nuno Reis