Re: regular expression to kill Lines:

From: Phil Crown (pcrown@airmail.net)
Date: Mon, 13 Jan 1997 16:30:21 -0600

>On Mon, 13 Jan 1997, Phil Crown wrote:
>
>> Does anyone have a regular expression to kill articles with < 1000
>> lines?
>>
>> I've tried, but I can't get one to work. I have something like
>>
>> "^Lines\: [0-9]{1,3}$"
>
>>From the top of my head:
>
> Lines: ^[0-9][0-9][0-9]$
>
>Something like that!

This doesn't work either. ^ says to match the beginning of the line,
and the three atoms (I think that's what they're called) end up
matching:

Lines: 999
Lines: 9999

but not

Lines: 9 or Lines: 99.

I could probably get it to work using three seperate expressions, like

^Lines: .$
^Lines: ..$
^Lines: ...$

but I'd like to do it with just one if possible. :-)

-- 
Phil Crown
pcrown@airmail.net
http://web2.airmail.net/pcrown/