I want a regular expression to check that:
A password contains at least eight characters, including at least one number and includes both lower and uppercase letter
This worked for me:
^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[@$!%*?&])([a-zA-Z0-9@$!%*?&]{8,})$