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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Strong Password
Expression
(?=^.{8,}$)(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s)[0-9a-zA-Z!@#$%^&*()]*$
Description
This regular expression can be used for validating a strong password. It expects at least 1 lowercase letter, 1 uppercase letter, and 1 digit. It will also allow for some special characters. The length should be greater than 8 characters. The sequence of the characters is not important.
Matches
Password1|1Passwor|passworD1|2passWord|Pass2Word|pa1SS2word|!1qAzxsw2
Non-Matches
q3w4e5er|asdfg|asdfghjkl;|ag asg ag|d36234724|mko)+OKM1
Author Rating: Not yet rated. Scot Baird
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: Why would it limit symbols?
Name: Krk
Date: 6/23/2022 3:44:12 PM
Comment:
WHy does it limit symbols to 0-9a-zA-Z!@#$%^&*()?


Title: zxc
Name: xzczxc
Date: 1/31/2021 9:26:55 AM
Comment:
zxczxc


Title: zxc
Name: xzczxc
Date: 1/31/2021 9:26:49 AM
Comment:
zxczxc


Title: zxc
Name: xzczxc
Date: 1/31/2021 9:26:40 AM
Comment:
zxczxc


Title: dqw
Name: fwef
Date: 10/30/2019 6:19:02 AM
Comment:
fwefwe


Title: mvp
Name: Joslin rafael
Date: 9/20/2019 1:36:45 PM
Comment:
owen291998


Title: mvp
Name: Joslin rafael
Date: 9/20/2019 1:33:34 PM
Comment:
password owen291998


Title: Strong Password
Name: Sean
Date: 6/25/2015 10:49:14 AM
Comment:
Also failes to enforce atleast 1 uppercase. tested with gloppa33


Title: Strong Password
Name: Randy Anderson
Date: 3/6/2014 4:17:44 PM
Comment:
Fails to enforce lower case when I tested, e.g. ASDFSADF1 matches.


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