I want a regular expression which allow only digits from 1 to 9999.It should restrict all other characters symbols and all.
I have tried ^\d+$. But it is not working
I want a regular expression which allow only digits from 1 to 9999.It should
Share
You can use
But better to parse the string to int and then compare the value..
follow KISS principle