note 17613 added to function.ereg-replace

From: Date: Mon, 17 Dec 2001 08:50:48 +0000
Subject: note 17613 added to function.ereg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-22977@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> -- http://www.php.net/manual/en/function.ereg-replace.php http://master.php.net/manage/user-notes.php?action=edit+17613 http://master.php.net/manage/user-notes.php?action=delete+17613 http://master.php.net/manage/user-notes.php?action=reject+17613

« previous php.notes (#22977) next »