M
Morten
Hi!
I'm trying to validate a password by means of a regular expression. I've
found the following: ^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{4,8}$ which should
guarantee that the password length is between 4 and 8 characters and that it
contains at least 1 lower case letter, 1 upper case letter and 1 numeric
digit. The problem is that no matter what I key in I'm told that it doesn't
match the criteria I've implemented.
Just to make sure that I can use some regular expression I've tried this:
^.{4,8}$ This just ensures that the length is between 4 and 8 characters and
it works OK.
Can somebody help me with this please?
Thanks in advance
Morten
I'm trying to validate a password by means of a regular expression. I've
found the following: ^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{4,8}$ which should
guarantee that the password length is between 4 and 8 characters and that it
contains at least 1 lower case letter, 1 upper case letter and 1 numeric
digit. The problem is that no matter what I key in I'm told that it doesn't
match the criteria I've implemented.
Just to make sure that I can use some regular expression I've tried this:
^.{4,8}$ This just ensures that the length is between 4 and 8 characters and
it works OK.
Can somebody help me with this please?
Thanks in advance
Morten