Path: utzoo!attcan!uunet!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!sunybcs!rutgers!cbmvax!jesup From: jesup@cbmvax.commodore.com (Randell Jesup) Newsgroups: comp.sys.amiga.tech Subject: Re: Regular expressions vs. file name generation (Was: Re: Pipes) Message-ID: <12518@cbmvax.commodore.com> Date: 10 Jun 90 06:53:38 GMT References: <2533@zipeecs.umich.edu> <136735@sun.Eng.Sun.COM> <12391@cbmvax.commodore.com> <36467@sequent.UUCP> <5806@sugar.hackercorp.com> Reply-To: jesup@cbmvax (Randell Jesup) Organization: Commodore, West Chester, PA Lines: 12 In article <5806@sugar.hackercorp.com> peter@sugar.hackercorp.com (Peter da Silva) writes: >Fine. How about "All files matching a legal C format statement?" > >%(|(|-)(*|#(0|1|2|3|4|5|6|7|8|9)))(|.(*|#(0|1|2|3|4|5|6|7|8|9)))(|l)(d|f|o|g|x|c) You could make that a lot smaller using the 2.0 character classes... ( [0-9], etc.) -- Randell Jesup, Keeper of AmigaDos, Commodore Engineering. {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com BIX: rjesup Common phrase heard at Amiga Devcon '89: "It's in there!"