1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Disallow username spaces

Discussion in 'XenForo Questions and Support' started by gldtn, Jan 21, 2011.

  1. gldtn

    gldtn Well-Known Member

    Is there a way to disallow username space on registration?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You can do that in Options -> User Registration: User Name Match Regular Expression

    Try using this ^[^\s]+$
    gldtn likes this.
  3. Andy.N

    Andy.N Well-Known Member

    How about not allowing numbers, only letter A-Z
  4. Brogan

    Brogan XenForo Moderator Staff Member

    This is from Google so I can't vouch for it: /^[a-zA-Z][\sa-zA-Z]*$/

    Regex is all a bit voodoo to me :D
  5. Shaun Mason

    Shaun Mason Active Member

Share This Page