Re: YARQ: Yet Another Regex Question

2007-05-16 Thread Mathew
Chas Owens wrote: > On 5/16/07, Mathew <[EMAIL PROTECTED]> wrote: > snip >> What does gr() do? >> >> Mathew >> > > qr not gr. It is the quote regex operator. > > from perldoc perlop > qr/STRING/imosx > This operator quotes (and possibly compiles) its STRING as a >

Re: YARQ: Yet Another Regex Question

2007-05-16 Thread Jeff Pang
Mathew 写道: What does gr() do? It's "qr" not "gr". See "perldoc perlop" and look for "qr/STRING/imosx". -- http://home.arcor.de/jeffpang/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: YARQ: Yet Another Regex Question

2007-05-16 Thread Chas Owens
On 5/16/07, Mathew <[EMAIL PROTECTED]> wrote: snip What does gr() do? Mathew qr not gr. It is the quote regex operator. from perldoc perlop qr/STRING/imosx This operator quotes (and possibly compiles) its STRING as a regular expression. STRING is interpola

Re: YARQ: Yet Another Regex Question

2007-05-16 Thread Mathew
Chas Owens wrote: > On 5/16/07, Mathew Snyder <[EMAIL PROTECTED]> wrote: >> I have a trouble ticket application that uses a regex to find a piece of >> information in an incoming email and auto populate a field if it is >> found. The >> line it will be looking for is >> CUSTOMER ENVIRONMENT cust

Re: YARQ: Yet Another Regex Question

2007-05-16 Thread Chas Owens
On 5/16/07, Mathew Snyder <[EMAIL PROTECTED]> wrote: I have a trouble ticket application that uses a regex to find a piece of information in an incoming email and auto populate a field if it is found. The line it will be looking for is CUSTOMER ENVIRONMENT customer_name where customer_name will

YARQ: Yet Another Regex Question

2007-05-16 Thread Mathew Snyder
I have a trouble ticket application that uses a regex to find a piece of information in an incoming email and auto populate a field if it is found. The line it will be looking for is CUSTOMER ENVIRONMENT customer_name where customer_name will never have a space making it one word. If I just want

another regex question

2002-04-22 Thread James Taylor
Hmm, it looks like something was wrong with my mail server, so I'm sending this question again - If you already got this, I apologize: I'm have this program that reads over mail logs looking for spammers, and depending on certain conditions, they're marked as a spammer. If the reverse lookup

another regex question

2002-04-22 Thread James Taylor
I'm have this program that reads over mail logs looking for spammers, and depending on certain conditions, they're marked as a spammer. If the reverse lookup on the relay used matches their email address however, no matter what, we're not marking them as a spammer. However, I've run across a

Re: Another Regex Question

2001-06-22 Thread M.W. Koskamp
- Original Message - From: Jack Lauman <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 21, 2001 11:48 PM Subject: Another Regex Question > I'm trying to create a CSV file from the text data below. Lines > containing High and Low Tide data have

Re: Another Regex Question

2001-06-22 Thread Jos Boumans
e > { > } > else # Must be lunar > { > } > > And just a note, if you're just going to put the date and time fields back > together, don't seperate them in your pattern match. > > ($date, $time, ... ) = ^(\d+-\d+-\d+)\s+(\d+:\d+)...$/ > > - Origina

Re: Another Regex Question

2001-06-21 Thread Ken
to put the date and time fields back together, don't seperate them in your pattern match. ($date, $time, ... ) = ^(\d+-\d+-\d+)\s+(\d+:\d+)...$/ - Original Message - From: "Jack Lauman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 21, 20

Another Regex Question

2001-06-21 Thread Jack Lauman
I'm trying to create a CSV file from the text data below. Lines containing High and Low Tide data have 9 fields, lines having sunrise/sunset and lunar data have 8 fields. How you differentiate between the two conditions? 2000-12-03 11:30 AM PST 9.39 feet High Tide 2000-12-03 4:15 PM PST S