Help > Forum > Users > Changing the username format

Changing the username format

Your forum users can choose a username that can contain any characters and be in any format by default. However, you can modify your settings so that the username can only contain characters and be in a format that you specify.

Example formats include "First Name Last Name", "Last Name, First Name", etc.

You can modify this setting by following the directions below:

  1. Log in to your Website Toolbox account.
  2. Click the Settings link.
  3. In the Settings menu, click the Security link.
  4. Change the Username Format option as per your requirement.
  5. Save your settings.

A regular expression must be provided in the Username regular expression option. If the option is left blank, the user will be able to specify any type of character or formatting for their username when they create their account.

Here are some common regular expression examples:

^[a-zA-Z]+, ?[a-zA-Z]+$ - First Name, Last Name

^[a-zA-Z_0-9 ]+$ - Alphanumeric characters including underscores and spaces.

^[a-zA-Z_0-9]+$ - Alphanumeric characters including underscores.

^[a-zA-Z0-9 ]+$ - Alphanumeric characters including spaces.

^[a-zA-Z_]+$ - Combination of lower and upper case letters including underscores.

^[a-zA-Z ]+$ - Combination of lower and upper case letters including spaces.

^[a-z ]+$ - Lowercase letters from a-z including spaces.

^[A-Z ]+$ - Uppercase letters from A-Z including spaces.

^[a-zA-Z0-9]+$ - Alphanumeric characters only.

^[a-zA-Z]+$ - Combination of lower and upper case letters.

^[a-z]+$ - Lowercase letters from a-z only.

^[A-Z]+$ - Uppercase letters from A-Z only.

If you still need help, please contact us.