Skip to content

Instantly share code, notes, and snippets.

@iamdual
Last active September 14, 2020 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamdual/dbcff128372097d179ec414101d560c2 to your computer and use it in GitHub Desktop.
Save iamdual/dbcff128372097d179ec414101d560c2 to your computer and use it in GitHub Desktop.
Must contain at least X in regular expressions
# At least one digit, at least one lowercase and uppercase letter, at least one special char:
((?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\-+.$*?!@#%=&_]).+)
# At least one digit, at least one lowercase and uppercase letter, at least one special char, string length between 8 and 64:
((?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\-+.$*?!@#%=&_]).{8,64})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment