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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details 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
   Displaying page 1 of 1 pages; Items 1 to 1

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