-
Hello,
Also after changing the expression to the above to represent 16 char it still give a throw back error of The Password must at least 8 charcaters long and contain at least 1 uppercase letter, 1lowercaseletter and 1 digit. However my password contains this when setting at leas 8 char but is more than 8 char and may contain symbols such as ? @ ! $ and so on in a the password and it will throw that error back.
-
Show us your final expression. BTW, you may check your variants here toohttps://www.phpliveregex.com/ (just don't paste the ~ signs from the beginning and the end). So my trick ^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{16,} works fine there too. The point with ! @ %^&* may look like:
^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@#%&]).{8,}
This variant will require a one ncessary special symbol.
-