Regex not working
-
I’m using this regex:
/^(?:[5-9]|(?:[1-9][0-9])|(?:[1-4][0-9][0-9])|(?:500))$/Trying to validate that the user enters a number between 5 and 500.
This works fine at regex101 however, it invalidates all numbers including numbers between 5 and 500.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Regex not working’ is closed to new replies.