bluesource
June 23rd, 2008, 03:55 PM
Hey I need a regular expression for a validation control on my password field:
Requirements
Must contain 1 digit
Entire password must be 6-10 digits
I have tried this, this ensures 1 digit, but how do I incorporate the length?
^(\w*(?=\w*\d)\w*)$
Any help greatly appreciated.
Requirements
Must contain 1 digit
Entire password must be 6-10 digits
I have tried this, this ensures 1 digit, but how do I incorporate the length?
^(\w*(?=\w*\d)\w*)$
Any help greatly appreciated.