Now I want to get only the line that has "Match" and not the line "Match Not". I used : cat text.txt | perl -nle 'print $_ if (/Match/)&&(!/Match Not/)' But I want to do that inside one regular expression.
Hello, perl -nle 'print $_ if /Match(?!\s+Not)/' -- Chinese Practical Mod_perl book online http://home.arcor.de/jeffpang/mod_perl/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/