Skip to content

Instantly share code, notes, and snippets.

View madison08's full-sized avatar
🎯
Focusing

Madison Attobra madison08

🎯
Focusing
View GitHub Profile
@madison08
madison08 / strong-password-regex.md
Created March 25, 2023 06:31 — forked from arielweinberger/strong-password-regex.md
Strong password Regular Expression - NestJS Course
  • 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
  • There is no length validation (min, max) in this regex!

Regular expression for JavaScript:

/((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/