in reply to negative lookbehind heartburn

That's a tough thing to specify. You have to "inchworm":
my $str = "..."; if ($str =~ /^(?:(?!odd).)*weird/s) { # we found "weird" without looking at odd }

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: •Re: negative lookbehind heartburn
by amazotron (Novice) on May 17, 2002 at 22:17 UTC
    Yup, that did it. Many thanks, Randall!