Hi. I have a regularexpressionvalidator that should meet these requirements when a user enters a password:
-- Must be be 8-20 characters
-- Must include at least one uppper case and one lower case letter
-- Must include at least one special characters (~ ! @ # $ % ^ & *)
Here is what I have for my validationExpression:
^.*(?=.{8,})(?=.*[a-z])(?=.*[A-Z])(?=.*[\*@~!#$%^&]).*$
The problem is that it does not cap the password at 20 characters. How can I make it do this? Thanks you in advance for your help!
-- Must be be 8-20 characters
-- Must include at least one uppper case and one lower case letter
-- Must include at least one special characters (~ ! @ # $ % ^ & *)
Here is what I have for my validationExpression:
^.*(?=.{8,})(?=.*[a-z])(?=.*[A-Z])(?=.*[\*@~!#$%^&]).*$
The problem is that it does not cap the password at 20 characters. How can I make it do this? Thanks you in advance for your help!