Jeremy Vinding wrote:
>
> }
> >
> > or if you want to be the quickest in the world, try:
> >
> > unless ($line =~ /^ (?! [Ldf] )
> > (?! LOG_INFO | dhcp | ftpd )
> > /x) {
> >
> > # line doesn't start with them
> > }
>
> I believe that would also catch lines such as:
>
> don't print this line, it doesn't start with LOG_INFO
Isn't it this exactly what Jorge Gonzalez wanted ?!
He searched for the last line, which doesn't start with LOG_INFO, dhcp,
ftpd.
This RE finds such lines. All he has still to do is to read the line
backwards.
But to say the truth, instead of an unless,
there should be an if.
Greetings,
Andrea
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]