Re: Behaviour of preg_replace with /e

From: Date: Sat, 07 Aug 2004 08:51:05 +0000
Subject: Re: Behaviour of preg_replace with /e
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-11987@lists.php.net to get a copy of this message
I documented this under e modifier: "Single and double quotes are escaped by backslashes in substituted backreferences." Decision if the behavior will change is up to the others. You can use preg_replace_callback() instead of e modifier. It doesn't escape quotes and is more PHPish :-). Jakub Vrána

« previous php.internals (#11987) next »