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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

regular expression help 1

Status
Not open for further replies.

DotNetGnat

Programmer
Mar 10, 2005
5,548
IN
Guys,

I need help in writing a regular expression that checks for the following

1. at least 6 characters
2. at least two non alpha-numeric characters

thanks in advance

-DNG
 
creating a regex for strongly typed passwords is very common, try searching the web.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Such as this, for instance.
[tt] ^(?=([0-9A-Za-z]*[^0-9A-Za-z]){2,}).{6,}$[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top