To have customer accounts more secure, a well crafted password is good practice. This is my Regular Expression string for password validation.
/^(?=.*[0-9])(?!.*?d{3})(?=.*[a-zA-Z])(?!.*?[a-zA-Z]{3})(?=.*[~!@#$%^&*()+-?])([a-zA-Z0-9~!@#$%^&*()+-?]{8,})$/
Represents:
- 8 or more characters.
- Uppercase letter A-Z
- Lowercase letters a-z
- Special characters ~!@#$%^&*()+-?
- What is this Regular Expression function for this?: Must not contain up to 3 sequential letters and/or numbers.
Having numbers and/or letters in order 3 or more sequential is not OK.
Example:
Not OK = efg123!$, abcd567%, xyz789^&, #hijk23456
OK = ryiiu562@, erty745#, gjnfl45566^
Thank you
See Question&Answers more detail:os