I'm new to regular expressions and am trying to create an expression to validate password complexity. Below I've listed the password requirements:
1. No white space.
2. At least one lowercase letter
3. At least one uppercase letter
4. At least one digit
5 At least one non-alphanumeric character
6. At least eight characters long
The regular expression below checks requirements 1 through 5 but I can't seem to figure out how to add number 6 - the length.
\s{0}\p{Ll}{1,}\p{Lu}{1,}\
d{1,}\W{1,
}
I'm sure this is trivial for you mavens.
Thanks,
John C. Christensen
Start Free Trial