P
paulsmith5
Hi,
I'm developing a web app and I want to validate a users input on a
form. I need a regular expression to validate a string which must be
from 1 to 5 characters in length - each character must be a number from
0 to 9 however the string can't be comprised entirely of 0's (i.e.
invalid entries would be 0, 00, 000, 0000, and 00000).
Hope someone can help.
Thanks,
Paul
I'm developing a web app and I want to validate a users input on a
form. I need a regular expression to validate a string which must be
from 1 to 5 characters in length - each character must be a number from
0 to 9 however the string can't be comprised entirely of 0's (i.e.
invalid entries would be 0, 00, 000, 0000, and 00000).
Hope someone can help.
Thanks,
Paul