I have a regular expression which allows the value range ‘1111’ – ‘999999’, excluding any instances of ‘0’:
^([1-9]){4,6}$
This is working for me, except my requirement has been modified. I now have to disallow the last ‘9’ in the range, so that the maximum value of the last character is ‘8’, e.g.
1111 - 9998, or 1111 - 99998, or 1111 - 999998
How can I modify this regular expression to meet the new criteria?
How about this one