in reply to Re: Regex: Lookahead
in thread Regex: Lookahead

Except that it doesn't work. Because your example is doing the replacement on the second line (like mine). I need it to fail the replacement on the second line (because it already is an html link).

Replies are listed 'Best First'.
Re^3: Regex: Lookahead
by ikegami (Patriarch) on May 12, 2009 at 16:34 UTC
    Did you run it? (Change "$_ =~" to "$_ = q~" first.) It may not do what you want, but contrary to what you claim, it doesn't touch the second line. (Note the /^/m)