S
Stirling
Hi all,
hope someone can help me,
I am looking to do a password validation check using client side
validation. Minimum requirement is that it must contain at least one
number and one letter. (Ideally it would be of 6-20 characters in
length but first things first).
I have came up with the following regEx
^(\w*(?=\w+\d+)(?=\w*[a-zA-Z])\w*)$
This works fine in IE but when testing it using NS6 it won't validate
'1password', but will validate 'password1'. It seems the first forward
search is consuming the first character in NS, would this be correct,
and if so can anybody suggest either a way arround this or a different
regular expression,
Thanks in advance,
SJM.
hope someone can help me,
I am looking to do a password validation check using client side
validation. Minimum requirement is that it must contain at least one
number and one letter. (Ideally it would be of 6-20 characters in
length but first things first).
I have came up with the following regEx
^(\w*(?=\w+\d+)(?=\w*[a-zA-Z])\w*)$
This works fine in IE but when testing it using NS6 it won't validate
'1password', but will validate 'password1'. It seems the first forward
search is consuming the first character in NS, would this be correct,
and if so can anybody suggest either a way arround this or a different
regular expression,
Thanks in advance,
SJM.