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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^(([A-Za-z]+[^0-9]*)([0-9]+[^\W]*)([\W]+[\W0-9A-Za-z]*))|(([A-Za-z]+[^\W]*)([\W]+[^0-9]*)([0-9]+[\W0-9A-Za-z]*))|(([\W]+[^A-Za-z]*)([A-Za-z]+[^0-9]*)([0-9]+[\W0-9A-Za-z]*))|(([\W]+[^0-9]*)([0-9]+[^A-Za-z]*)([A-Za-z]+[\W0-9A-Za-z]*))|(([0-9]+[^A-Za-z]*)([A-Za-z]+[^\W]*)([\W]+[\W0-9A-Za-z]*))|(([0-9]+[^\W]*)([\W]+[^A-Za-z]*)([A-Za-z]+[\W0-9A-Za-z]*))$
Description
Password with minimum 1 Letter (A-Za-z), 1 Number (0-9) and Special Character (\W). It doesn't matter the charaters position. See the Mathching Examples. Question? Write an Email to me.
Matches
test22!! | !!test22 | 22!!test
Non-Matches
test22 | !!test | 22!!
Author Rating: The rating for this expression. Andreas Feiden
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: Missing uppper case
Name: Amit
Date: 4/4/2009 2:17:37 AM
Comment:
Passes following password: @#$34eer


Title: Help
Name: David
Date: 3/20/2009 1:26:47 PM
Comment:
I need a expression to check for the following: 4 upper, 4 lower, 4 number, and 4 special (!@#$%^&*()) in any order. Must be 16 characters long min. Please help.


Title: Help
Name: David
Date: 3/20/2009 1:26:39 PM
Comment:
I need a expression to check for the following: 4 upper, 4 lower, 4 number, and 4 special (!@#$%^&*()) in any order. Must be 16 characters long min. Please help.


Title: Much simpler way Part2
Name: Andreas Feiden
Date: 12/15/2005 2:34:38 AM
Comment:
Hi Randal, do you try your own expression, here one the website? I get one match, when i test your expression with my sample matches, but the list with the matches is empty?! When i use your expression on my website, in the RegularExpressionValidator-Control. I get the error message, when i test it,with the sample matches! What make i wrong?


Title: Much simpler way
Name: Randal L. Schwartz
Date: 12/14/2005 11:11:01 AM
Comment:
/^(?=.*[A-Za-z])(?=.*\d)(?=.*\W)/ Use the right tools for the job.


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