java - Password with at least [1-9] at least [a-z] al least [A-Z] without special character -
java - Password with at least [1-9] at least [a-z] al least [A-Z] without special character -
i need help validate password regex java password must contain: - @ to the lowest degree [a-z] - @ to the lowest degree [a-z] - @ to the lowest degree [1-9] without special characters.
thanks
samuele
if characters password can contain a-z
, a-z
, 1-9
use
"^(?=.*[a-z])(?=.*[a-z])(?=.*[1-9])[a-za-z1-9]+$"
if password can contain other characters need specify are, or specify cannot be.
if want specify minimum length, alter +
e.g. {10,}
- means 10 or more.
java regex passwords special-characters
Comments
Post a Comment