Re: OT: regex pattern problem

2004-01-06 Thread Kevin Mark
On Wed, Jan 07, 2004 at 03:59:55AM +, Craig Tinson wrote: > guys.. regex patterns are a *complete* mystery so am hoping someone can > help with one.. > > I have to find all entries in a file which match the following: > > (pg. 2) > (pg. 210) > (pg. 211) > (pg. 309) > (pg. 4000) > > etc etc >

Re: OT: regex pattern problem

2004-01-06 Thread Nano Nano
On Tue, Jan 06, 2004 at 09:43:28PM -0700, s. keeling wrote: > Incoming from Craig Tinson: > > guys.. regex patterns are a *complete* mystery so am hoping someone can > > help with one.. > > > > I have to find all entries in a file which match the following: > > > > (pg. 2) > > Which tool? I bel

Re: OT: regex pattern problem

2004-01-06 Thread Todd Pytel
On Tue, 6 Jan 2004 21:43:28 -0700 "s. keeling" <[EMAIL PROTECTED]> wrote: > Which tool? I believe perl's would be... Yeah, each one works a little different. Perl's the best all-around, IMO, but I'll add grep... grep '(pg\. [0-9][0-9]*)' filename -- Todd Pytel ---

Re: OT: regex pattern problem

2004-01-06 Thread s. keeling
Incoming from Craig Tinson: > guys.. regex patterns are a *complete* mystery so am hoping someone can > help with one.. > > I have to find all entries in a file which match the following: > > (pg. 2) Which tool? I believe perl's would be: /\(pg\. [0-9]*\)/ or: /\(pg\. \d+\)/ Shell woul

OT: regex pattern problem

2004-01-06 Thread Craig Tinson
guys.. regex patterns are a *complete* mystery so am hoping someone can help with one.. I have to find all entries in a file which match the following: (pg. 2) (pg. 210) (pg. 211) (pg. 309) (pg. 4000) etc etc what regex pattern would I use? TIA Craig -- To UNSUBSCRIBE, email to [EMAIL PROT