I would like an advice. I work on Symfony 4.
I need to check in my controller if the password got an uppercase letter, a number, a special character and if the length is 8 characters minimum. I already do the checking in my twig by adding the regex in the attribute of the input.
I don't know if I must take the string and check for each letter.
Do you know a better way to do it?
Thanks.