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: [email protected] > 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 > <[email protected]> wrote: > >> When using > >> Substitute s|toreplace|*$1*|ni > >> I get "*$1" in my page. > > > > You have to capture something. > > >
