note 7503 deleted from function.ereg by jimw

From: Date: Fri, 02 Nov 2001 01:20:59 +0000
Subject: note 7503 deleted from function.ereg by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20116@lists.php.net to get a copy of this message
The period matches anything, so escape it if you want to match against a period.<br> ereg("c.w",$string) matches "cow", but also "ciw", "clw" and so on. Use "\." instead. ereg("c\.w",$string) matches only "c.w".

« previous php.notes (#20116) next »