RE: pattern matching

2005-06-20 Thread Harwood, Andrew (DTEI)
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

Re: pattern matching

2005-06-20 Thread Foo Ji-Haw
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

RE: pattern matching

2005-06-20 Thread Gardner, Sam
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

RE: pattern matching

2005-06-20 Thread eric clark
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.

RE: pattern matching

2005-06-20 Thread Gardner, Sam
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

pattern matching

2005-06-20 Thread Hawk
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