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:
- At least 8 chars
- Contains at least one digit
- Contains at least one lower alpha char and one upper alpha char
- Contains at least one char within a set of special char (@#%$^ etc.)
- Not containing blank, tab etc.
I'm missing just the point 5. I'm not able to include into the regexp the check on not containing blank tab carriage return etc.
Anyone could help me?