note 18551 added to function.eregi

From: Date: Sun, 27 Jan 2002 22:05:51 +0000
Subject: note 18551 added to function.eregi
Groups: php.notes 
Request: Send a blank email to php-notes+get-25874@lists.php.net to get a copy of this message
Just small correction for the above code. You might want to finish the pattern with +? rather then *?. + requires that previous pattern is repeated at least once. * looks for ZERO or more matches which would let through bogus email like user@ without the domain name. -- http://www.php.net/manual/en/function.eregi.php http://master.php.net/manage/user-notes.php?action=edit+18551 http://master.php.net/manage/user-notes.php?action=delete+18551 http://master.php.net/manage/user-notes.php?action=reject+18551

« previous php.notes (#25874) next »