Click to See Complete Forum and Search --> : ASP.NET validation control


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.

Rohit Kukreti
June 24th, 2008, 04:13 AM
try the length property of the string in javascript