I am using
/^(?=.\d)(?=.[a-z])(?=.*[A-Z])[0-9a-zA-Z]{8,}$/
But the problem is when I add any special character like !/@/#... etc, this regex doesn't valid.
for example:
"Customer12" is valid. "@Customer12" is not valid
I need a regex where "Customer12" and "@Customer12" would be valid. regex would not be affected by special character (~!@#$%^&*()_+).
How can I create a regex where password must contain at least eight characters, at least one number and both lower and uppercase letters?