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
What about considering the following regex solution:
^(?=.*[\w])(?=.*[\W])[\w\W]{8,}$
Which validates the following:
Check it out working at the following link https://regex101.com/r/qPmC06/4/