posted 11 years ago
Hi Guys,
I am doing a login page which contains user name and password..
I need to validate the username using regular expression
the criteria is as follows:
1)It can contain either alphabets, special characters(-,'',_) or numbers..
2)length should be minimum of 8 characters and maximum of 20 characters..
so, my codings to validate the username is
"if(!(/^[a-zA-Z0-9/-_ ]{8,20}$/).test(uid))" does not validate the above mentioned criteria.. please clarify me
Thanks in advance
Regards,
Bala