• 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

Chojo

Active member
#1
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.
 

Jeremy

Well-known member
#4
If you want to allow period you need to replace it with \. which will for it to be a period within the name.