I'm creating a regexp for password validation that will be used in a Java Application as a configuration parameter.
The regexp is:
^.*(?=.{8,})(?=..*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&+=]).*$
The password policy is:
Please help me wit the regular expression for the password policy mentioned below:- The password length should at least be 8 characters. It should be a combination of at least any two of the given sets. a. Set of alphabets a-z, A-Z b. Set of numerics 0-9 c. Set of special characters ~!@#$ etc.