Regex for password must contain at least eight characters, at least one number and both lower and uppercase letters and special characters

0
31


Views:
5

Minimum eight characters, at least one letter, and one number

^(?=.*[A-Za-z])(?=.*d)[A-Za-zd]8,$

Minimum eight characters, at least one letter, one number, and one special character

^(?=.*[A-Za-z])(?=.*d)(?=.*[@$!%*#?&])[A-Za-zd@$!%*#?&]8,$
regex5

Minimum eight characters, at least one uppercase letter, one lowercase letter, and one number

^(?=.*[a-z])(?=.*[A-Z])(?=.*d)[a-zA-Zd]8,$

Minimum eight characters, at least one uppercase letter, one lowercase letter, one number, and one special character

^(?=.*[a-z])(?=.*[A-Z])(?=.*d)(?=.*[@$!%*?&#])[A-Za-zd@$!%*?&#]8,$
regex6

Minimum eight and maximum 10 characters, at least one uppercase letter, one lowercase letter, one number and one special character

^(?=.*[a-z])(?=.*[A-Z])(?=.*d)(?=.*[@$!%*?&])[A-Za-zd@$!%*?&]8,10$

Let us know if you liked the post. That’s the only way we can improve.

Source

LEAVE A REPLY

Please enter your comment!
Please enter your name here