Quote:
Originally Posted by veenuisthebest
1. User registration options->Username Regular Expression -> Enter ^[A-Z0-9 ]+$ that would allow alphanumeric characters including space. Read (?) for more details
|
Allright, thanks! I have another question concerning this: how can I enable only (capital) letters, numbers and single spaces (so until this you already told how I should do this), but besides these signs, also to allow the specific signs "." "_" and "-", but that these three signs cannot be at the start of an username?
For example:
user-name_ can be used
user_name- can be used
user.name. can be used
but -username-, _username and .username cannot be used.
So to be more specific in what my question is. How do I allow the following signs: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwx yz1234567890.-_
while .-_ cannot be used at the start? And of course, all other signs cannot be used in usernames.