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

XF 1.2 Username special characters

Discussion in 'XenForo Questions and Support' started by Chojo, Aug 6, 2013.

  1. Chojo

    Chojo Active Member

    Hi, I'm using an expression to contain username for only alpha numeric but some users are able to create their username with special characters

    My expression: ^[a-zA-Z0-9_.-àöäüÖÄÜß\s]+$
    Example of special characters: ¤

    Dunno how I can block that? Sorry for my poor english and ty for the help.
  2. Hoffi

    Hoffi Well-Known Member

    a dot matches any single character, you mus escape the dot.
  3. Chojo

    Chojo Active Member

    so my new expression need to be

  4. Jeremy

    Jeremy XenForo Moderator Staff Member

    If you want to allow period you need to replace it with \. which will for it to be a period within the name.
  5. Hoffi

    Hoffi Well-Known Member

Share This Page