ereg_replace()

From: Date: Sat, 08 Jul 2000 22:50:02 +0000
Subject: ereg_replace()
Groups: php.general 
Request: Send a blank email to php-general+get-5572@lists.php.net to get a copy of this message
var $version = ereg_replace("[\$]", "", '$Revision: 1.8 $'); The above $version holds the string Revision: 1.8 var $version = ereg_replace("\$", "", '$Revision: 1.8 $'); The above $version holds nothing. Why does ereg_replace() require [] around the pattern? BSD, Apache 1.3.12, PHP 3.0.16 Brian

« previous php.general (#5572) next »