my $str = "..."; if ($str =~ /^(?:(?!odd).)*weird/s) { # we found "weird" without looking at odd }
-- Randal L. Schwartz, Perl hacker
In reply to •Re: negative lookbehind heartburn
by merlyn
in thread negative lookbehind heartburn
by amazotron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |