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

XF 1.4 RegEx Help

Discussion in 'XenForo Questions and Support' started by TDUBS, Jul 3, 2015.

  1. TDUBS

    TDUBS Active Member


    I have this:
    ^[a-zA-Z0-9@._ ]+$
    In my User Registration options and I am wondering how I can go about disallowing spaces as well. I think it makes things look off when users use spaces in their username so I want to disallow it upon registration.

    Thank you.
  2. EQnoble

    EQnoble Well-Known Member

    Literally remove the space.

    Last edited: Jul 3, 2015
    TDUBS likes this.
  3. TDUBS

    TDUBS Active Member

    I'm not familiar with RegEx, but thanks for the help.

Share This Page