29.01.2013, 19:47
Hi,
I'm programming some user interface in PHP, and I'm having a little problem with acceptable nicknames.
I know these are the accepted characters:
a-z A-Z 0-9 . _ $ @ = ( ) [ ].
and you need 3-20 characters. (can be done with strlen)
Does anyone have a regular expression laying around or knows how to make a regex for checking if any other characters than those allowed are posted($username)?
I'm programming some user interface in PHP, and I'm having a little problem with acceptable nicknames.
I know these are the accepted characters:
a-z A-Z 0-9 . _ $ @ = ( ) [ ].
and you need 3-20 characters. (can be done with strlen)
Does anyone have a regular expression laying around or knows how to make a regex for checking if any other characters than those allowed are posted($username)?