note 22795 added to function.ereg

From: Date: Sun, 30 Jun 2002 13:23:54 +0000
Subject: note 22795 added to function.ereg
Groups: php.notes 
Request: Send a blank email to php-notes+get-32436@lists.php.net to get a copy of this message
I think you're wrong, that would return True if there is at least one 'normal' character in the string. ereg("^[a-zA-Z0-9]+$",$var); is the correct regex as far as i remember -- http://www.php.net/manual/en/function.ereg.php http://master.php.net/manage/user-notes.php?action=edit+22795 http://master.php.net/manage/user-notes.php?action=delete+22795 http://master.php.net/manage/user-notes.php?action=reject+22795

« previous php.notes (#32436) next »