HardSecurity
Password Strength Validator
Write a regex that validates a password requiring at least one lowercase letter, one uppercase letter, one digit, one symbol, and a minimum length of 8 characters.
Need a syntax reminder? Read our detailed guide on the Password Strength Validator Regex Pattern.
//
Passw0rd! / password1! / PASSWORD1! / Password! / Password1 / Pw1!
Test cases
- Passw0rd!expect match
- P@ssw0rdexpect match
- password1!expect no match
- PASSWORD1!expect no match
- Password!expect no match
- Password1expect no match
- Pw1!expect no match
How to Solve this Regex Challenge
To complete the Password Strength Validator challenge, you must write a regular expression pattern that satisfies all specified test cases.
Steps to Complete:
- Analyze the Requirements: Read the description and review the list of test cases below. Identify which strings must be matched (green markers) and which must be rejected (red markers).
- Draft Your Pattern: Enter your regex in the interactive editor. Use the provided Hint button if you get stuck.
- Verify: The test cases panel will update in real-time as you type, showing which strings match your current expression.
- Review the Solution: Once you successfully pass all test cases, review the explanation to understand the logic behind the solution.