Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11987 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39625 invoked by uid 1010); 7 Aug 2004 08:50:03 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 39466 invoked from network); 7 Aug 2004 08:50:03 -0000 Received: from unknown (HELO smtp.dkm.cz) (62.24.64.34) by pb1.pair.com with SMTP; 7 Aug 2004 08:50:03 -0000 Received: (qmail 19166 invoked by uid 0); 7 Aug 2004 08:50:02 -0000 Received: from c27.dkm.cz (62.24.67.27) by smtp.dkm.cz with SMTP; 7 Aug 2004 08:50:02 -0000 Date: Sat, 7 Aug 2004 10:51:05 +0200 X-Priority: 3 (Normal) Message-ID: <582531454.20040807105105@vrana.cz> To: Peter Brodersen CC: internals@lists.php.net In-Reply-To: <20040806073350.FC1B.PHP@ter.dk> References: <20040806073350.FC1B.PHP@ter.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=Windows-1250 Content-Transfer-Encoding: quoted-printable Subject: Re: Behaviour of preg_replace with /e From: vrana@php.net 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=E1na