i am trying to remove all lines that its password doesnt follow my standard policy username:password the policy are
Passwords are after ":" And password policy is that the password must be 7 to 32 characters long and The password must contain a mix of letters, numbers, and/or special characters also passwords containing only letters or only numbers are not accepted
username:Password42
Username52@:sssdt3
user:Pass!626795
use:uss
removing all lines only leaving
username:Password42
user:Pass!626795
i tried using regex, Made this one but it doesnt work perfectly, Why so? Anyone can fix it?
^:*(?!(?=.*\d)(?=.*[a-z])(?=.*[A-Z])|(?=.*\d)(?=.*[a-z])(?=.*[!@#$%^&*()_+])|(?=.*\d)(?=.*[A-Z])(?=.*[!@#$%^&*()_+])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*()_+])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*()_+])).*$\R*