These are the requirements:
- 1 Uppercase
- 1 Lowercase
- 1 Special character
- 1 Number (0-9)
- Total length is 12-16
I currently have this expression, which works as expected:
(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*\W)
This checks for everything except length, so this is valid Aa2@
How do I add the length check of 12-16 characters?