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

Regex for usernames in registration form.


Well-known member
How do I exclude certain characters in usernames on registeration form? I want to prevent users from using numbers and english letters since my forum is in Arabic... how do i do that?

Jake Bunce

XenForo moderator
Staff member
Admin CP -> Home -> Options -> Users and Registration -> User Name Match Regular Expression

This regex should do what you want. I tested it and it appears to work.