in reply to regexp exclude a string
$headache++
$myTime--
$problem->{description}--
...
perl -e '$/=""; map {$c=0; $file=$_; open FH,$file; $_=<FH>; 1 while m +/(?:green red blue)|(?:(green|red|blue)(?{$c++}))/g; close FH; print + "$file matchs!\n" if $c } glob("*")'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regexp exclude a string
by Murcia (Monk) on Jan 19, 2006 at 15:27 UTC |