I'm using Regex to know if a user is sending a new password with at least one number and one letter, and with a minimum of 6 characters.
But I can´t obligate the user to use an uppercase letter, a lowercase letter, a number and a symbol.
The password must be like this:
Test123@ or 12Test@ or 1T2@eSt etc
The user obviously choose where goes each thing, but must contain minimun one uppercase letter, one a lowercase letter, one number and one symbol.
This is my Regex: ^.*(?=.{6})(?=.*\d)(?=.*[a-zA-Z!@#$%]).*$
Can you help me?