Allowing whitespace when validating form entries

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I've got a form i'm testing at

i've got it all working except it won't let me have any gaps in the gamertag
the code for that section is:

if (eregi ('^[[:alnum:]]$', stripslashes(trim($_POST['gamertag'])))) {
$g = escape_data($_POST['gamertag']);
} else {
$g = FALSE;
echo '<p class="error">Please enter your gamertag!</p>';

all help appreciated.

Site Timeline