I am trying to accept only 7 digit long number not starting with 0 or 1
7089097 - OK
0089097 - Not good
1089097 - Not good
This is what i tri
You can try this:
^[2-9][0-9]{6}$