Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RegularExpressionValidator

Status
Not open for further replies.

mateobus

Programmer
Aug 20, 2007
28
0
0
US
I am trying to write a regular expression validator with not much luck. I want to enforce the following on a password:

At least 6 characters. At least 1 number. At Least 1 letter.

This is what I have which does not seem to be working:

^(?=.*[0-9]+.*)(?=.*[a-zA-Z]+.*)[0-9a-zA-Z]{6,}$
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top