Skip to content

Instantly share code, notes, and snippets.

@RickCarlino
Created March 20, 2014 20:38
Show Gist options
  • Save RickCarlino/9673315 to your computer and use it in GitHub Desktop.
Save RickCarlino/9673315 to your computer and use it in GitHub Desktop.
Password Regex

Password Strength Regex

Ensures a password has...

  • One uppercase
  • One lowercase
  • One special character
  • Two digits
  • Length greater than 8
^(?=.*[A-Z])(?=.*[!@#$&*])(?=.*[0-9])(?=.*[a-z]).{8,}$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment