Re: regular expression to kill Lines:

From: Hardy Griech (rgriech@ibm.net)
Date: Mon, 03 Feb 1997 12:51:45 +0100

On Tue, 28 Jan 1997 15:16:25 -0800, michaelh@scn.org (Michael Hanson) wrote:
> On Tue, 14 Jan 1997 21:45:44 +0100, rgriech@ibm.net (Hardy Griech) wrote:
> >On Tue, 14 Jan 1997 08:36:57 -0600, pcrown@airmail.net (Phil Crown) wrote:
> > :
> >> I think I've tried this, but can't remember the results. It may work,
> >> but I was trying to do it in one line instead three.
> > :
> >
> >Not sure if this is even possible with regular expressions (I am not a
> >theoretical computer scientist...). There are some extensions to
>
> Definitely possible with regular expressions. Since you wish to
> match a finite collection of strings, you can just list them with
> ORs between them. i.e.
> 0|1|2|3|4|5|6|7|8|9|10|11| . . . |999
> One (long) line. ;)
:

Very funny, but you're right...

Hardy

-- 
Hardy Griech, Kurt-Schumacher-Str. 25/1, D-72762 Reutlingen