in reply to negative lookbehind heartburn
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 |