httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Plüm, Rüdiger, VF-Group" <ruediger.pl...@vodafone.com>
Subject Re: mod_substitute & back-references
Date Wed, 11 Mar 2009 09:36:02 GMT
Have you tried without the q flag?

Regards

Rüdiger 

> -----Ursprüngliche Nachricht-----
> Von: Nick Gearls 
> Gesendet: Mittwoch, 11. März 2009 10:04
> An: dev@httpd.apache.org
> Betreff: Re: mod_substitute & back-references
> 
> Oops, stupid !
> 
> Anyway, a real problem:
> 	Substitute s|(toreplace)|*replaced[$1]*|qi
> translates "toreplace" into 
> "*replaced[*replaced[*replaced[toreplace]*]*]*"
> 
> Don't we expect the q flag to stop any replacement after the 
> first one?
> 
> Thanks,
> 
> Nick
> 
> 
> Eric Covener wrote:
> > On Tue, Mar 10, 2009 at 8:01 AM, Nick Gearls 
> <nickgearls@gmail.com> wrote:
> >> When using
> >>        Substitute s|toreplace|*$1*|ni
> >> I get "*$1" in my page.
> > 
> > You have to capture something.
> > 
> 

Mime
View raw message