Here's my suggestion that allows for either upper or lower case "re". It
will also reject a line where there is NO number between the [ and ]
[Rr][Ee]:?\s*\[(\d+)\]
This does not allow for white space between the [ and the number (and also
between the number and the ]), if you wanted that (the w
How about:
re:?\s*[]
Hawk wrote:
Hi,
Wonder if you pattern matching wizards out there can help me match the
patterns below:
re [] < white space between "e" and "["
re[]
re: [] < white space after ":" and "["
Where are random numbers of
Title: Message
Your
.* will pick up everything
relakdjflasdjfl[78] for example, will match
Sam
Gardner
GTO Application Development
Keefe, Bruyette & Woods, Inc.
212-887-6753
-Original Message-From: eric clar
off the top of my head ... /re.*\[\d+\]/i
Eric
"I'd take you seriously but to do so would be an affront to your intelligence."
-- William F. Buckley --
>From: "Hawk" <[EMAIL PROTECTED]>>Reply-To: [EMAIL PROTECTED]>To: >Subject: pattern matching>Date: Mon, 20 Jun 2005 14:29:46 -0400>MIME-Version: 1.
Title: RE: pattern matching
/re:?\s*\[\d+\]/i;
Seems to work
Sam Gardner
GTO Application Development
Keefe, Bruyette & Woods, Inc.
212-887-6753
-Original Message-
From: Hawk [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 20, 2005 2:30 PM
To: activeperl@listserv.Activ
Hi,
Wonder if you pattern matching wizards out there can help me match the
patterns below:
re [] < white space between "e" and "["
re[]
re: [] < white space after ":" and "["
Where are random numbers of various lenghts.
I have not seen any with