The regular expression of a password must contain at least eight characters, at least one number, upper and lower case letters, and special characters

Time:2021-2-11

Regular online test address
At least eight characters, at least one letter and one number:

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

At least eight characters, at least one letter, one number and one special character:

"^(?=.*[A-Za-z])(?=.*d)(?=.*[@$!%*#?&])[[email protected]$!%*#?&]{8,}$" 

At least eight characters, at least one upper case letter, one lower case letter and one number:

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

At least eight characters, at least one upper case letter, one lower case letter, one number and one special character:

"^(?=.*[a-z])(?=.*[A-Z])(?=.*d)(?=.*[@$!%*?&])[[email protected]$!%*?&]{8,}$" 

At least 8 characters, at most 10 characters, at least one upper case letter, one lower case letter, one number and one special character:

"^(?=.*[a-z])(?=.*[A-Z])(?=.*d)(?=.*[@$!%*?&])[[email protected]$!%*?&]{8,10}$"