Hi,
I've been trying to write a very simple Regular Expression for a password textbox, which consists of restricting the password length to between 4 and 20 characters, and having no whitespace.
However, I can't find any easy way of doing this (I would like to have the whitespaces checked within the Regular Expression rather than using another method.
Is there an easy way of doing this? I have tried using the [^\s] character class along with \w{4,20} but it doesn't work,
Thanks for your time,
John