Answer the question
In order to leave comments, you need to log in
How to write a regular expression to validate characters in username and password?
Expressions are needed for:
1) Username field: only latin letters are needed, case does not matter
2) Password field, where needed: - at least 6 letters, at least one small letter, at least one capital letter, at least one number, and no special characters like [email protected]#$%^&*()+;
Help, good people!
Answer the question
In order to leave comments, you need to log in
/[a-z]+/i
/(?=^[a-zA-Z\d]{6,}$)(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).*/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question