![]() |
Prevent users from using multiple spaces in a row in username
I'm looking to restrict usernames to using only alphabetic letters and numbers. I also need to prevent multiple spaces in a row between characters but I want to allow spaces. My current username regular expression is this
Code:
^[a-zA-Z0-9 ]+$ edit: Solved, thank you. |
Users can enter multiple spaces in a row, but these are automatically reduced to one space before being stored in the db (at least that's what my vB 4.2.5 dev site did when I tested it.).
|
All times are GMT. The time now is 10:05 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|