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.

Reply via email to