There is a field with a password. It is necessary to validate with the following condition:
The minimum password length is 8 characters.
maximum length of 20 characters
The field must contain lower and upper case Latin letters, at least 4 letters + special characters.
Tried to do the following way - did not work:
(?=.*\d)((?=.*[az])|(?=.*[AZ]){4,}).{8,20}