At 09:49 22.06.2001 -0400, Yacketta, Ronald wrote:
>Folks,
>
>Is this syntax correct for finding multiple words in a line?
> $results{$test}++ if /$test/ && /Factory/ && /failed/;
Looks good.
>also, what would the syntax be to find a word in a line that does
>not contain another word? something similar to
> grep joe output | grep -v fred
$results{$test}++ if($_ =~ /joe/ && $_ !~ /fred/);
Aaron Craig
Programming
iSoftitler.com
- 2 regex questions Yacketta, Ronald
- Re: 2 regex questions Aaron Craig
- Re: 2 regex questions Chas Owens
- Re: 2 regex questions Michael Fowler
- Re: 2 regex questions Aaron Craig
- RE: 2 regex questions Yacketta, Ronald
- RE: 2 regex questions Wagner-David
- RE: 2 regex questions Chas Owens
