Yes, there is. You can also disallow certain usernames or phrases (see screen shot).
If you are using that RegEx in vBulletin you should only be getting capital letters, numbers, and spaces.Glad I checked, that's different from vB. Thanks again.
Thanks to @wcbryant for indulging my curiosity and giving me some information about vBulletin that lead me to figuring out that both of our RegEx's will work in XenForo for the same reason his works in vBulletin. Its due to the fact that both vBulletin and XenForo utilize the Caseless flag in the RegEx.No. That will reject a decent amount of usernames. You'll want to use:
^[a-zA-Z0-9 ]+$
Your RegEx disallows lower case.
But yes, such RegEx will prevent Emoji. It also removes the possibility of punctuation.
@Jeremy Where do I implement this?No. That will reject a decent amount of usernames. You'll want to use:
^[a-zA-Z0-9 ]+$
Your RegEx disallows lower case.
But yes, such RegEx will prevent Emoji. It also removes the possibility of punctuation.
No. That will reject a decent amount of usernames. You'll want to use:
^[a-zA-Z0-9 ]+$
Your RegEx disallows lower case.
But yes, such RegEx will prevent Emoji. It also removes the possibility of punctuation.
Not a RegEx master, that's @Mike. But a quick search of the Internet returned this for the double ++:
http://stackoverflow.com/questions/4489551/what-is-double-plus-in-regular-expressions
Probably not necessary in this case. Yours seems to enforce two words as a maximum of two words. Although you do use a non capturing group. I'll have to research it more tonight. Where did you get it?
However, mine does as it is stated above.
We use essential cookies to make this site work, and optional cookies to enhance your experience.