Paul B XenForo moderator Staff member Jan 21, 2011 #2 You can do that in Options -> User Registration: User Name Match Regular Expression Try using this ^[^\s]+$ Upvote 0 Downvote
You can do that in Options -> User Registration: User Name Match Regular Expression Try using this ^[^\s]+$
A Andy.N Well-known member Jan 21, 2011 #3 How about not allowing numbers, only letter A-Z Upvote 0 Downvote
Paul B XenForo moderator Staff member Jan 21, 2011 #4 This is from Google so I can't vouch for it: /^[a-zA-Z][\sa-zA-Z]*$/ Regex is all a bit voodoo to me Upvote 0 Downvote
Shaun Mason Active member Jan 22, 2011 #5 Brogan said: This is from Google so I can't vouch for it: /^[a-zA-Z][\sa-zA-Z]*$/ Regex is all a bit voodoo to me Click to expand... That reminds me of the Jeff Atwood thought: Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems. http://www.codinghorror.com/blog/2008/06/regular-expressions-now-you-have-two-problems.html Upvote 0 Downvote
Brogan said: This is from Google so I can't vouch for it: /^[a-zA-Z][\sa-zA-Z]*$/ Regex is all a bit voodoo to me Click to expand... That reminds me of the Jeff Atwood thought: Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems. http://www.codinghorror.com/blog/2008/06/regular-expressions-now-you-have-two-problems.html