Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
foreach my $line (@lines) { next if ($line !~ m/red/ || $line !~ m/blue/ || $line =~ m/green/) +; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: quick regex help for multiple OR
by dragonchild (Archbishop) on May 13, 2008 at 00:50 UTC | |
by convenientstore (Pilgrim) on May 13, 2008 at 04:11 UTC | |
by McDarren (Abbot) on May 13, 2008 at 10:43 UTC | |
|
Re: quick regex help for multiple OR
by mwah (Hermit) on May 13, 2008 at 17:34 UTC |