How can I make a limit to the 'integer' data type (e.g. 01 to 99)?

FWIW, above does it all with a regex; alternatively you can just check the string being input is 3 digits long - $[0-9]{3}$ - and then use normal relational operators to check the number represented is > 0 and <= 400 [but regex’s are more fun! :grin: ]

1 Like

Reminds me of a famous quote:

“Some people, when confronted with a problem, think ‘I know, I’ll use regular expressions.’ Now they have two problems.”

:joy:

1 Like