foreach my $line (@lines) { next if ($line !~ m/red/ || $line !~ m/blue/ || $line =~ m/green/) +; } [download]
In reply to quick regex help for multiple OR by Anonymous Monk