XF 2.0 Username expression

Knight319

Member
Hey all, I'm currently using /^[A-Za-z0-9 -_]+$/ and I'm still getting users being able to register with special characters in their name (!@#$%^&*()). Maybe I'm approaching it the wrong way as I'm just looking to allow letters, numbers, dashes, underscores, and spaces. Would /^[a-zA-Z0-9\_\-\ ]+$/ fulfill what I'm trying to do instead?
 
Top Bottom