Password Regular Expression Validation

Password matching expression. Password must be at least 6 characters, no more than 10 characters, and must include at least one upper case letter, one lower case letter, and one numeric digit.
Expression

^(?=.*d)(?=.*[a-z])(?=.*[A-Z]).{6,10}$

Matches

asD1 | asDF1234 | ASPgo123

Non-Matches

asdf | 1234 | ASDF12345

Tagged . Bookmark the permalink.

Leave a Reply