Created
February 26, 2018 16:33
-
-
Save pimatco/a14457a15ede765a15e29880ad2fb301 to your computer and use it in GitHub Desktop.
Reg Exp Password Validation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Minimum eight characters, at least one letter and one number: | |
"^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$" | |
Minimum eight characters, at least one letter, one number and one special character: | |
"^(?=.*[A-Za-z])(?=.*\d)(?=.*[$@$!%*#?&])[A-Za-z\d$@$!%*#?&]{8,}$" | |
Minimum eight characters, at least one uppercase letter, one lowercase letter and one number: | |
"^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,}$" | |
Minimum eight characters, at least one uppercase letter, one lowercase letter, one number and one special character: | |
"^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[$@$!%*?&])[A-Za-z\d$@$!%*?&]{8,}" | |
Minimum eight and maximum 10 characters, at least one uppercase letter, one lowercase letter, one number and one special character: | |
"^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[$@$!%*?&])[A-Za-z\d$@$!%*?&]{8,10}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment