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
>
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
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
---
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
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
5 matches
Mail list logo