Re: New-Line in Regular Expression

2006-09-08 Thread Romeo Theriault
Wow, thank you to everyone whom responded on this one, it's great to get really good responses. Rob, you have some really good points in your email and your code works great. Thank you. But there is one part that I don't fully understand. In this piece of the code, while () { if (/user ([\w.]

Re: New-Line in Regular Expression

2006-09-07 Thread John W. Krahn
Romeo Theriault wrote: > Hello, Hello, > I'm trying to match this line (or more than one) starting from > the words "user picard..." > > 8/28/2006 1:04:41 PM: Retrieving mail from host mail.maine.edu > [130.111.32.22], user picard... > 8/28/2006 1:04:45 PM: Mail retrieval failed, reason: POP3

Re: New-Line in Regular Expression

2006-09-07 Thread Rob Dixon
Romeo Theriault wrote: > > Hello, I'm trying to match this line (or more than one) starting from > the words "user picard..." > > 8/28/2006 1:04:41 PM: Retrieving mail from host mail.maine.edu [130.111.32.22], user picard... > 8/28/2006 1:04:45 PM: Mail retrieval failed, reason: POP3 Host did no

Re: New-Line in Regular Expression

2006-09-07 Thread D. Bolliger
Romeo Theriault am Donnerstag, 7. September 2006 22:42: > Hello, I'm trying to match this line (or more than one) starting from > the words "user picard..." > > 8/28/2006 1:04:41 PM: Retrieving mail from host mail.maine.edu > [130.111.32.22], user picard... > 8/28/2006 1:04:45 PM: Mail retrieval fa

RE: New-Line in Regular Expression

2006-09-07 Thread Charles K. Clarkson
Romeo Theriault wrote: : Hello, I'm trying to match this line (or more than one) starting from : the words "user picard..." : : 8/28/2006 1:04:41 PM: Retrieving mail from host mail.maine.edu : [130.111.32.22], user picard... : 8/28/2006 1:04:45 PM: Mail retrieval failed, reason: POP3 Host did : n

New-Line in Regular Expression

2006-09-07 Thread Romeo Theriault
Hello, I'm trying to match this line (or more than one) starting from the words "user picard..." 8/28/2006 1:04:41 PM: Retrieving mail from host mail.maine.edu [130.111.32.22], user picard... 8/28/2006 1:04:45 PM: Mail retrieval failed, reason: POP3 Host did not acknowlege password and retu

Re: New line in Regular expression.

2001-05-23 Thread Timothy Kimball
japhy wrote: : On May 23, Timothy Kimball said: : : >2. Use the "s" modifier to treat the slurped-up file as a single string. : : The /s modifier changes the meaning of . only, and not ^ or $ -- see my : response. I stand corrected. In my defense, I don't use either of these modifiers often. :

Re: New line in Regular expression.

2001-05-23 Thread Jeff Pinyan
On May 23, Timothy Kimball said: >2. Use the "s" modifier to treat the slurped-up file as a single string. The /s modifier changes the meaning of . only, and not ^ or $ -- see my response. See chapter 5 of LPRE: http://www.pobox.com/~japhy/docs/LPRE.html#5.%20more%20pattern%20modifiers --

Re: New line in Regular expression.

2001-05-23 Thread Timothy Kimball
: this is what i tryed on the command prompt. : : perl -pi -e 's{^

Re: New line in Regular expression.

2001-05-23 Thread Jeff Pinyan
On May 23, pda said: > and come to the new line and also check whether if there is a in >the given file if it finds it has to replace with a other string. > >this is what i tryed on the command prompt. > >perl -pi -e 's{^

New line in Regular expression.

2001-05-23 Thread pda
Hi, I am facing problem to serach the new line also in the regular expression. For example:-