Title |
Test
Find
Seven digit number with leading zeros
|
Expression |
^(000000[1-9])$|^(00000[1-9][0-9])$|^(0000[1-9][0-9][0-9])$|^(000[1-9][0-9][0-9][0-9])$|^(00[1-9][0-9][0-9][0-9][0-9])$|^(0[1-9][0-9][0-9][0-9][0-9][0-9])$|^([1-9][0-9][0-9][0-9][0-9][0-9][0-9])$ |
Description |
This will check to see if the string entered is all digits and is seven digits long. It will allow for leading zeros and also not allow for all zeros to be entered. |
Matches |
0000001 | 1234567 | 0003344 |
Non-Matches |
000012 | 12345678 | 123456A |
Author |
Rating:
Martin Hawes
|
Source |
|
Your Rating |
|