InRegex Logo
InRegex
New

Strong Password Checker

Explanation

This regex pattern ensures that the password contains at least one lowercase letter, one uppercase letter, one digit, one special character, and is between 8 and 16 characters in length.

javascript

Regular Expression

^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^a-zA-Z\d]).{8,16}$
Copy
Do you have Feedback?
javascript

Example Usage

const passwordRegex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^a-zA-Z\d]).{8,16}$/;
Copy

Test the expression

Similar Regular Expressions