Skip to content

Instantly share code, notes, and snippets.

@EmmanuelGuther
Created June 6, 2018 10:17
Show Gist options
  • Save EmmanuelGuther/3e63cf63e8f730c5d12d193ba39c764f to your computer and use it in GitHub Desktop.
Save EmmanuelGuther/3e63cf63e8f730c5d12d193ba39c764f to your computer and use it in GitHub Desktop.
REGEX STRONG PASSWORD
Description of this regular expression is as below:
Passwords will contain at least 1 upper case letter
Passwords will contain at least 1 lower case letter
Passwords will contain at least 1 number or special character
Passwords will contain at least 8 characters in length
Password maximum length should not be arbitrarily limited
(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment