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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Password Validation
Expression
^(?!.*(.)\1{3})((?=.*[\d])(?=.*[A-Za-z])|(?=.*[^\w\d\s])(?=.*[A-Za-z])).{8,20}$
Description
8-20 chars; at least one alpha; at least one number or special char; up to 3 repeating chars, no more
Matches
8charact, twentychar$acters123, 1repppeats
Non-Matches
6chars, twentychar$acters123456, 1reppppeat, nonummmbers
Author Rating: The rating for this expression. Terry Palmer
Source char5 5char 6chars chars6 8charact charact8 ch888ara ch8888ar twentycharacters1234 morethantwentyonechars sp$cialchar $pecialchar specialcha$ spe888ia
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

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