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

What did I fail to realize? The first line does not have a carrot or a quote, so I want it to match there. The second line does have a quote following it, so I want it to fail on that one (do nothing).

Replies are listed 'Best First'.
Re^3: Regex: Lookahead
by ikegami (Patriarch) on May 12, 2009 at 15:44 UTC

    The second line does have a quote following it,

    "it"? There are many urls in the second line. Yes, one of them is followed by a quote. But you asked to find one that isn't followed by a quote, and perl found one. "http://www.google.co" is followed by a "m", not a quote.