Skip to content

Instantly share code, notes, and snippets.

@johnnymillergh
Last active April 20, 2021 01:24
Show Gist options
  • Save johnnymillergh/ac3e3b641a2373e8723c6182558ac986 to your computer and use it in GitHub Desktop.
Save johnnymillergh/ac3e3b641a2373e8723c6182558ac986 to your computer and use it in GitHub Desktop.
Regular Expression Collection

Regular Expression Collection

Password with 3 types of character: alphabet, number, and special character.

const passwordRegExp = /^(?=.*([a-zA-Z].*))(?=.*[\d].*)(?=.*[!@#$%^&*\-+].*)[a-zA-Z\d!@#$%^&*\-+]{12,20}$/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment