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

Reply via email to