I need a regular expression for a password field that:
Must have 1 number
Must have 1 letter (uppercase)
Must have 1 letter (low
Use [a-zA-Z0-9] instead of . and anchor your regex:
[a-zA-Z0-9]
.
^((?=.*\d)(?=.*[a-z])(?=.*[A-Z])[a-zA-Z0-9]{8,})$