I would like to use a "Matches Regex" custom validation to ensure that a text entry is a number between 0 and 2. Decimals should be allowed (but not necessary), but they have to use "." (not ",") as a separator.
I have tried "^[0-2]+.[0-9]$", but there are two problems: 1) the code allows "," as a separator and 2) it does not allow a number without a decimal.
I am new to Regex, so any leads would be much appreciated!
Best answer by Kate
View original