I have already tried several options on this topic here on Stackoverflow, but none of them worked.
I have a database of passwords that I need to review for compliance.
I figured how to build an expression to match the passwords that are compliant with the required complexity:
8-32 characters letters numbers special characters
^(?=.*[a-z])(?=.*[A-Z])(?=.*[[:digit:]])(?=.*[[:punct:]]).{8,32}
Now, all I need to do is to get the negative of the above expression to find the password that do not match the required complexity.
I tried to change the expression to this:
(?!^(?=.{8,32}$)(?=.*[[:alpha:]])(?=.*[[:digit:]])(?=.*[[:punct:]])).*
but that does not work.
Thanks for your help