note 17613 deleted from function.ereg-replace by jimw

From: Date: Fri, 21 Dec 2001 00:32:12 +0000
Subject: note 17613 deleted from function.ereg-replace by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23631@lists.php.net to get a copy of this message
<P>You have to escape '(' sign in regexp with backslash... brackets has special meaning in regular expressions.</P> <P>ereg_replace("\(","_",$input) shold be OK</P> <P>P.S. the right bracket version doesn't produce an error message, because regular expression engine doesn't find left bracket before it and is so smart and can recognize, that you are using it in "normal" meaning...</P>

« previous php.notes (#23631) next »