You can reproduce the problems on this file:
        <html><body>
        abc
        </body></html>

1. Substitute s|abc|abc|n     ->  OK: "abc"
2. Substitute s|abc|+abc|     -> NOK: "+++abc"
3. Substitute s|abc|++abc|nq  -> NOK: "++++++abc"
4. Substitute s|abc|+++abc|q  -> NOK: "+++++++++abc"

q & n flags have no influence.

I also managed to have a full recursive loop (Apache eating memory up to a crash), but I cannot reproduce it anymore !?!

Regards,

Nick


Ruediger Pluem wrote:

On 03/12/2009 06:13 PM, Nick Gearls wrote:

Anyway, a real problem:
    Substitute s|(toreplace)|*replaced[$1]*|qi
translates "toreplace" into
"*replaced[*replaced[*replaced[toreplace]*]*]*"

Hm. I cannot reproduce this. Mind to attach the file to which you applied this?

Regards

Rüdiger


Reply via email to