I have a regex
expression in order to test my password : at least one digit, at least one upper letter,at least one lower letter and at least one special character.
/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s])/
But underscore is not recognized as special character
.
How can I improve this ?