Conditions:
1. The password must have between six and thirteen word characters \w
2. It must include at least one lowercase character [a-z]
3. It must include
at least three uppercase characters [A-Z]
4. It must include at least one digit \d
I tried this command:
Code:
^(?=.*[a-z])(?=.*[0-9])(?=.*[A-Z]{3,})\w{6,13}$
and this is working partially, but only if uppercase chars repeated...
Match:
PASSWORD32pa3
passwrd32ABNA
password34AAA
passord345AAA
passw2ordAAAA
Not match:
passwo3ABsSA
PAeQsaaa23
Why does not match "passwo3ABsSA"?
I tested it with
regextester.