in reply to Re: negative lookbehind heartburn
in thread negative lookbehind heartburn

Unfortunately this will also match strings that don't contain the substring "weird". Without using lookbehind lookahead, this problem will probably require two tests (one to test for "weird" and one to test for "odd"), since we only want strings containing "weird" but not "odd" before "weird". That was an odd sentence, how weird. :-)

Replies are listed 'Best First'.
Re: Re: Re: negative lookbehind heartburn
by perlplexer (Hermit) on May 17, 2002 at 22:49 UTC
    Yep, you are right. Thanks for pointing that out.

    --perlplexer