I am trying to write a simple regular expression, but I do not know why it does not work.
The user enters 2 digits, for example 01
, 09
, 23
, 55
, up to 82
. After 82
system will fail.
Here is my regex, 2 digits should be less than 82.
0[1-9]|[1-8][0-9]|8[0-2]
Kadir source share