Skip to content

Instantly share code, notes, and snippets.

@whomwah
Last active April 11, 2019 08:13
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 whomwah/5142090 to your computer and use it in GitHub Desktop.
Save whomwah/5142090 to your computer and use it in GitHub Desktop.
[RegExp] Various useful regex's #regex

Must include one number, one upper and lower case letter and be between 8 and 40 characters

/^(?=.*\d)(?=.*?[a-z])(?=.*?[A-Z]).{8,40}$/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment