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

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -