Use the following Regex to satisfy the below conditions:
Conditions:
- Min 1 uppercase letter.
- Min 1 lowercase letter.
- Min 1 special character.
- Min 1 number.
- Min 8 characters.
- Max 30 characters.
Regex:
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[#$@!%&*?])[A-Za-z\d#$@!%&*?]{8,30}$/
Top comments (0)