note 22770 deleted from function.ereg by zak

From: Date: Tue, 02 Jul 2002 18:39:58 +0000
Subject: note 22770 deleted from function.ereg by zak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-32515@lists.php.net to get a copy of this message
I think the previous regex could be rewrited simply as: ereg("[a-zA-Z0-9]+",$var); Eliminating the 2 negations. It returns TRUE if $var has no special characters. Please correct me if I'm wrong.

« previous php.notes (#32515) next »