P paul1 Member Oct 17, 2013 #1 Hi, Is possible prohibit the registration of users that includes space in the nick? Example: John Doe < I want to block registering of nicks like this JohnDoe < Allowed Thanks.
Hi, Is possible prohibit the registration of users that includes space in the nick? Example: John Doe < I want to block registering of nicks like this JohnDoe < Allowed Thanks.
Jeremy in memoriam 1991-2020 Oct 17, 2013 #2 ^[^\s]+$ Add that as your user name validation RegEx in your options and it should work (I'd test it). Upvote 0 Downvote
^[^\s]+$ Add that as your user name validation RegEx in your options and it should work (I'd test it).
P paul1 Member Oct 17, 2013 #3 Jeremy said: ^[^\s]+$ Add that as your user name validation RegEx in your options and it should work (I'd test it). Click to expand... Didn't work. Upvote 0 Downvote
Jeremy said: ^[^\s]+$ Add that as your user name validation RegEx in your options and it should work (I'd test it). Click to expand... Didn't work.
Martok Well-known member Oct 17, 2013 #4 Have a look in this thread, which offers some solutions depending on what other characters you wish to allow/disallow. http://xenforo.com/community/threads/reg-exp-for-usernames.31419/ Upvote 0 Downvote
Have a look in this thread, which offers some solutions depending on what other characters you wish to allow/disallow. http://xenforo.com/community/threads/reg-exp-for-usernames.31419/
P Paul B XenForo moderator Staff member Oct 17, 2013 #5 The code posted above works. I tested it on my local. Upvote 0 Downvote
P paul1 Member Oct 17, 2013 #6 Works! I had set this RegEx in the wrong place. Thank you. Upvote 0 Downvote