I'm trying to create a regex for a password input, where the user must enter at least one digit, one uppercase letter, one lowercase letter, and any one symbol except the asterisk and percentage sign, and must be at least fifteen characters long. Thus far, I have come up with this:
(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[^A-Za-z\d*%]).{15,}
But when I test this on RegexR, I try inputting the following string, ILovePizza1234!!!*
and it passes. What is wrong with the expression? Please help, and thanks for any tips in advance