Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 52654 invoked from network); 11 Jun 2009 11:49:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jun 2009 11:49:09 -0000 Received: (qmail 6051 invoked by uid 500); 11 Jun 2009 11:49:20 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 5990 invoked by uid 500); 11 Jun 2009 11:49:20 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 5981 invoked by uid 99); 11 Jun 2009 11:49:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jun 2009 11:49:19 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 11 Jun 2009 11:49:16 +0000 Received: (qmail 52314 invoked by uid 2161); 11 Jun 2009 11:48:43 -0000 Received: from [192.168.2.4] (euler.heimnetz.de [192.168.2.4]) by cerberus.heimnetz.de (Postfix on SuSE Linux 7.0 (i386)) with ESMTP id A5C571721C for ; Thu, 11 Jun 2009 13:48:45 +0200 (CEST) Message-ID: <4A30EF27.5070304@apache.org> Date: Thu, 11 Jun 2009 13:48:55 +0200 From: Ruediger Pluem User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090402 SeaMonkey/1.1.16 MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: mod_substitute memory problem References: <4A2F94D4.2040200@gmail.com> <20090610134706.3736946e@grimnir> <4A2FDCEC.6020304@gmail.com> <4A3002C0.7060104@apache.org> <4A30AE29.1070400@gmail.com> In-Reply-To: <4A30AE29.1070400@gmail.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org On 06/11/2009 09:11 AM, Nick Gearls wrote: > Yes, that's what I meant. > > The kind of thing that (surprisingly) works is > s/(pattern)/---toremove---$1/q > s/---toremove---//q > > The second one should obviously use the n flag, but even with a regex it > works. I also tried with the second string longer or shorter, and it > always works (at least on my test page). > Can I really consider this as safe? I guess this special case yes, but not in general. Regards R�diger