Skip to content

Instantly share code, notes, and snippets.

@salaros
Last active May 8, 2018 20:03
Show Gist options
  • Save salaros/f531a9de1988c7034c27b5d622822e76 to your computer and use it in GitHub Desktop.
Save salaros/f531a9de1988c7034c27b5d622822e76 to your computer and use it in GitHub Desktop.
A good regEx for validating secure passwords
(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@\.\*\\\/,#$%`|\)\(\]\[=]).{6,25}
* min 6 max 25 characters
* at least one lower-case letter
* at least one upper-case letter
* at least one digit
* at least one "special" character, among these: , . * / \ # $ % ` [ ] ) (
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment