Hi,
If I use regex like this one:
userForm.setValidation('password', '[0-9]+' );
it validates fine, but I want to use my regex, like:
userForm.setValidation('password', '/^(?=.*\d)(?=.*[!@#$%^&*])(?=.*[a-z])(?=.*[A-Z]).{8,20}$/' );
and it does not validate.
The regex itself looks fine, you check it here: https://regex101.com/
For example string ‘asd345DD!’ will be valid.
What could be the problem here?