RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Very Strong Password
Expression
^(?=.*[a-z].*[a-z])(?=.*[A-Z].*[A-Z])(?=.*\d.*\d)(?=.*\W.*\W)[a-zA-Z0-9\S]{9,}$
Description
This pattern requires at least two lowercase letters, two uppercase letters, two digits, and two special characters. There must be a minimum of 9 characters total, and no white space characters are allowed.
Matches
A1!B2@cde
Non-Matches
ABC!@#123
Author Rating: The rating for this expression. Philip
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: Incorrect Matching
Name: Leo
Date: 2/27/2012 1:37:50 PM
Comment:
A1!B2@cAA can you please fix? (I gotta finish this today....) Thanks!


Title: Cant get this to work..any known issues?
Name: steve
Date: 2/14/2007 12:44:39 PM
Comment:
I really need this reg ex but cant seem to get it to work in my application. Any known issues??


Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials