note 18518 added to function.eregi

From: Date: Sat, 26 Jan 2002 03:45:07 +0000
Subject: note 18518 added to function.eregi
Groups: php.notes 
Request: Send a blank email to php-notes+get-25831@lists.php.net to get a copy of this message
There is a small bug in the above mentioned reg-expression: Because we are using double quotes ("") we have to use double backslashes to get a single backslash to eregi() (the first backslash escapes the second). Without this change, the expression would recognize everything instead of a dot as valid, such as nobody@php,net -- http://www.php.net/manual/en/function.eregi.php http://master.php.net/manage/user-notes.php?action=edit+18518 http://master.php.net/manage/user-notes.php?action=delete+18518 http://master.php.net/manage/user-notes.php?action=reject+18518

« previous php.notes (#25831) next »