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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Password Validation
Expression
/^(?=.*\d)(?=.*[!@#$%^&*_<>?|])(?=.*[a-z])(?=.*[A-Z])[A-Za-z\d][A-Za-z\d!@#$%^&*_<>?|]{6,}[A-Za-z\d]$/
Description
This regular expression is used for validating password with the following criteria. a. Should start and end with an alphanumeric character. b. Atleast 1 uppercase letter. c. Atleast 1 lower case letter. d. Atleast 1 Number. e. Atleast 1 special character from the list(!@#$%^&*_<>?|). f. Minimum 8 characters length.
Matches
Example@19, eXample@19, 19eXample@2K
Non-Matches
@19eXample2K, 19eXample2K#, 19example@2K, example@K
Author Rating: The rating for this expression. Basil Tj
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

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