in reply to Re^3: regex, use of lookaround for whole word filteringin thread regex, use of lookaround for whole word filtering
$test = "a nor b neither"; say $test =~ /(.*?nor)/i && $1 !~ /neither/i ? 1 : 0; [download]