[REQ] Restrict usernames to alphanumeric and underscore

Do you really need the mod?

This is already possible in default vBulletin, since 3.6.8 if not sooner.

Admin CP -> vBulletin Options -> vBulletin Options -> User Registration Options -> Username Regular Expression
 
I also need it ....... or tell me the regular expression to restrict username
1. Between 6 to 15 characterd
2. Only alphabets, numerals and underscore allowed
3. First char should be a character

Thanks
 
here you go.
icon12.gif
 
Wow.. so quick..... Thank a LOT....

O god ... there's no option to set the minimum/max length of the username......

Btw shld I remove the values STored in Regular expression box in vbulletin options to make this hack work?
 
I am using ^([a-z]|_([a-z0-9]|$))([a-z0-9]|_([a-z0-9]|$))*$ as my regular expression which is working very fine BUT I want to make it to check for minimum length of 5 chars and maximum for 15 chars.....
Plz help me modify this regular expression..... I know that there is smthng like {4,15} to be used but dont know how and where...... searched throu net but no luck...
 
Back
Top