I am not able to combine below two regular expressions. Password standard requirement:
- Password cannot contain your username or parts of your full name exceeding two consecutive characters
- Passwords must be at least 6 characters in length
- Passwords must contain characters from three of the following categories
- Uppercase characters (English A-Z)
- Lowercase characters (English a-z)
- Base 10 digits (0-9)
- Non-alphabetic characters (e.g., !, @, #, $, %, etc.)
Expression:
passwordStrengthRegularExpression="((?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%]).{6,20})"
Passwords cannot contain the word “Test” or “test” or variants of the word
passwordStrengthRegularExpression="((?=.*\"^((?!Test|test|TEST).*)$"
Both are working fine individually.