I need a regex to find a number in the range [40010-40100]. I tried with this 40[0-1][0-9][0-9] , but it does not work. Can someone help me?
40[0-1][0-9][0-9]
Here you go ...
40(0([1-9][0-9])|100)
This should do: (40100|400[1-9][0-9])
(40100|400[1-9][0-9])
Try to execute
40((0[1-9][0-9])|(100))
Although this is not a big task for regular expression. It would be much easier to simply compare the range by number
/400[1-9][0-9]|40100/
Why can't I just send an answer without βOh!β?