Skip to content

Instantly share code, notes, and snippets.

@bolencki13
Created August 11, 2017 15:26
Show Gist options
  • Save bolencki13/243420f68663664d06288dd8c6bf773f to your computer and use it in GitHub Desktop.
Save bolencki13/243420f68663664d06288dd8c6bf773f to your computer and use it in GitHub Desktop.
Regex Password Validation
/*
Valid password condition:
• At least 8 characters long
• At least one upper-case letter
• At least one lower-case letter
• At least one numeric digit
*/
((?=.*\\d)(?=.*[a-z])(?=.*[A-Z])){8,}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment