in reply to Re: regex, use of lookaround for whole word filtering
in thread regex, use of lookaround for whole word filtering

No, it disallows following instances of "neither".
$ perl -E'say "a nor b neither" =~ /^(?!.*neither).*nor.*$/mi ?1:0' 0

Replies are listed 'Best First'.
Re^3: regex, use of lookaround for whole word filtering
by dasgar (Priest) on Aug 10, 2010 at 22:19 UTC

    Nice catch. Didn't even test that kind of scenario.

    Took a few minutes after reading your post to realize why my suggested regex was incorrect. Another example of Perl doing what I told it to do instead of what I wanted it to do. :D