I am in need of a regfex for a validation framework which accepts regex formats for validation. I cannot use arithmetic and comparative operators. I have come up with a solution but It is not working as expected. I want to know what’s wrong with the regex which I came up with and how to sort it out right
Regex for any number from 10429
to 40999
My solution:
^1042[9-9]|104[3-9][0-9]|10[5-9][0-9][0-9]|1[1-9][0-9][0-9][0-9][0-9]|[2-3][0-9][0-9][0-9][0-9]|40[0-9][0-9][0-9]
But this one is not working.