![]() |
Help with usernames, PCRE-type regular expressions
Need a little help here, trying to limit usernames for new registrations.
I can see this in admincp vB options, but it's either too much filtering or not enough: Code:
You may require the username to match a PCRE-type regular expression. Any help on what this syntax would be? Also... And if you know how... Preferably no "repeat" periods/underscore/hyphen/spaces. i.e., "--BESTUSEREVER-- ___ -- 123" Better yet, limit to two total periods, underscores, hyphens, spaces I don't want any more users trying to use screwball usernames full of ASCII. Or even overusing what is allowable non-letter/non-number. Thanks. |
Um, maybe:
^[A-Z0-9\._- ]+$ Really not sure exactly. I just added & and # to my list of illegal usernames. |
Quote:
I chronicled my findings on this issue at http://www.digitalFAQ.com/forum/show...scii-2823.html And yours was the one that worked best. Thanks. |
All times are GMT. The time now is 02:33 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|