I want users signing up on my site to choose passwords that include:
- Minimum of 8 characters
- At least one uppercase
- At least one lowercase
At least one digit. But these are the minimum requirements. They can include any characters such as @,#,&, etc. as long as these requirements are met. I have the following regex:
/^(?=.*?[a-z])(?=.*?[A-Z])(?=.*?\d)\w{8,20}$/
But it doesn't match other characters asides those in the requirements listed above. I want to be able match a password that can contain any character but still meet the conditions above. How do i do this?