Re: multiline matching

2004-01-16 Thread James Edward Gray II
On Jan 15, 2004, at 8:30 PM, Kenton Brede wrote: Thanks for the great explanation. I've been working with the code above since I need more hash practice, trying to keep on track with the original poster's question. The code below works fine except I can't figure out how to put one "\n" between

Re: multiline matching

2004-01-15 Thread Kenton Brede
On Thu, Jan 15, 2004 at 08:38:11AM -0600, James Edward Gray II ([EMAIL PROTECTED]) wrote: > On Jan 14, 2004, at 10:28 PM, Kenton Brede wrote: > > >On Wed, Jan 14, 2004 at 09:57:51PM -0600, James Edward Gray II > >([EMAIL PROTECTED]) wrote: > >>On Jan 14, 2004, at 7:22 PM, Jose Malacara wrote: >

Re: multiline matching

2004-01-15 Thread James Edward Gray II
On Jan 14, 2004, at 10:28 PM, Kenton Brede wrote: On Wed, Jan 14, 2004 at 09:57:51PM -0600, James Edward Gray II ([EMAIL PROTECTED]) wrote: On Jan 14, 2004, at 7:22 PM, Jose Malacara wrote: Since you've already been shown the super easy way, I'll dare to be a little different: #!/usr/bin/perl

Re: multiline matching

2004-01-15 Thread drowl
> On Wed, Jan 14, 2004 at 06:22:58PM -0700, Jose Malacara wrote: >> Can someone explain to me how to do multiline matching? I am trying to >> extract three consecutive lines from a datafile containing multiple >> records like this: >> Hi All well i was reading t

RE: multiline matching

2004-01-14 Thread Tim Johnson
y the "three consecutive lines" part of your question. -Original Message- From: Jose Malacara [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 5:23 PM To: [EMAIL PROTECTED] Subject: multiline matching Can someone explain to me how to do multiline matching? I am try

Re: multiline matching

2004-01-14 Thread Kenton Brede
On Wed, Jan 14, 2004 at 09:57:51PM -0600, James Edward Gray II ([EMAIL PROTECTED]) wrote: > On Jan 14, 2004, at 7:22 PM, Jose Malacara wrote: > Since you've already been shown the super easy way, I'll dare to be a > little different: > > #!/usr/bin/perl > > use strict; > use warnings; > > $

Re: multiline matching

2004-01-14 Thread James Edward Gray II
On Jan 14, 2004, at 7:22 PM, Jose Malacara wrote: Can someone explain to me how to do multiline matching? I am trying to extract three consecutive lines from a datafile containing multiple records like this: Name: Bob City: Austin State: Texas Address: 123 Whatever Age: 46 Name: Jose City

Re: multiline matching

2004-01-14 Thread Daniel Staal
--As off Wednesday, January 14, 2004 6:22 PM -0700, Jose Malacara is alleged to have said: Can someone explain to me how to do multiline matching? I am trying to extract three consecutive lines from a datafile containing multiple records like this: Name: Jose City: Denver State: Colorado Address

Re: multiline matching

2004-01-14 Thread Jose Malacara
nt $&' Thanks again, Jose On Wed, 2004-01-14 at 18:37, Jeff Westman wrote: > Jose Malacara <[EMAIL PROTECTED]> wrote: > > > Can someone explain to me how to do multiline matching? I am > > trying to extract three consecutive lines from a datafile > >

Re: multiline matching

2004-01-14 Thread Kenton Brede
On Wed, Jan 14, 2004 at 06:22:58PM -0700, Jose Malacara wrote: > Can someone explain to me how to do multiline matching? I am trying to extract three > consecutive lines from a datafile containing multiple records like this: > > Name: Bob > City: Austin > State: Texas >

Re: multiline matching

2004-01-14 Thread Jeff Westman
Jose Malacara <[EMAIL PROTECTED]> wrote: > Can someone explain to me how to do multiline matching? I am > trying to extract three consecutive lines from a datafile > containing multiple records like this: Check out perldoc perlre What you should do is look at the &#x

multiline matching

2004-01-14 Thread Jose Malacara
Can someone explain to me how to do multiline matching? I am trying to extract three consecutive lines from a datafile containing multiple records like this: Name: Bob City: Austin State: Texas Address: 123 Whatever Age: 46 Name: Jose City: Denver State: Colorado Address: 118 Mystreet Age: 28

Re: multiline matching

2003-07-04 Thread Rob Dixon
Mark Sony wrote: > Hi all, > > I am writing a program which will print variety of matches > having > keywords like insert,delete etc from another file .For this I > wrote a couple of sub routines one of which returns an > array(having the comments removed ).Then I face the problem : > A part of tha

multiline matching

2003-07-04 Thread mark sony
Hi all, I am writing a program which will print variety of matches having keywords like insert,delete etc from another file .For this I wrote a couple of sub routines one of which returns an array(having the comments removed ).Then I face the problem : A part of that array is : CURSOR c_efc(l_wo

Re: Regular expression multiline matching with /m

2002-09-17 Thread david
Reg Smith wrote: > > my $prev_abs="..\\obj\\gsm_gp_flash_prev.abs"; > my $abs_file="..\\obj\\gsm_gp_flash.abs"; > my $months='(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)'; > > # collect the output of NT fc (file compare) command > $diff_abs = `fc /W $abs_file $prev_abs 2>&1`; > > if($diff

Re: Regular expression multiline matching with /m

2002-09-17 Thread Mohd Salman
rked. > >I've also tried using the /s modifier and putting a "." at the end of >each line to match newlines, but again I can't get it to match. > >I suppose I could take the approach of just checking the length of the >$diff_abs string, it will always be a cons

Regular expression multiline matching with /m

2002-09-17 Thread reg . smith
the length of the $diff_abs string, it will always be a constant size for files that only differ by their embedded dates, but I like to know what I'm missing with the regular expression method. If anyone can see an obvious mistake or put me straight on my understanding of multiline matching modi