I am trying to write a regular expression which can match enter number string which should be in range of
-50 to 100000000
I have tried expression like
^(-?)(1000|[0-9][0-9][0-9]?)$
but it matches only -1000 to 1000 numbers.
example for to test are simple
-50
-39
9
1000
36900
2000022
Please help me to get such expression which can be match range -50 to 100M
I know we can write simple if condition but I want regex only.
Thanks in Advance.