I want to check the string for the following conditions:
- Must be 6 characters long
- Only the first character can be alphanumeric, the rest must be numeric
- If the first digit is alpha, it must be closed
- Not all zeros
I have the following regex that gets everything except a portion of all zeros. Is there a way to disable all zeros?
^[A-Z0-9][0-9]{5}$
This is the only way to do this to check the regex (and allow "000000"), but then specifically verify that it is not "000000"?
Thanks.
source share