Back to Patterns
Security
Strong Password Regex
Matches passwords with at least 8 characters, one uppercase, one lowercase, one number and one special character.
Pattern
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/gm
Test Data
StrongPass1!
weakpass
NoSpecialChar1