Re: Regular Expression Help sought

2002-07-04 Thread Katy Brownfield
> also detect the beginning of the string. > > > > $file =~ s/((^|\n\n).+?)\n/$1 /g; > > > > Katy > > > > Timothy Johnson wrote: > > > > > > > > > I think you'll need 2 blank lines. > > > > > > -Original M

Re: Regular Expression Help sought

2002-07-04 Thread Nigel Peck
ohnson wrote: > > > > > > I think you'll need 2 blank lines. > > > > -Original Message- > > From: Sunish Kapoor > > To: Nigel Peck > > Cc: [EMAIL PROTECTED] > > Sent: 7/3/02 6:51 PM > > Subject: Re: Regular Expression Help sough

Re: Regular Expression Help sought

2002-07-03 Thread Sunish Kapoor
nish Kapoor > > To: Nigel Peck > > Cc: [EMAIL PROTECTED] > > Sent: 7/3/02 6:51 PM > > Subject: Re: Regular Expression Help sought > > > > Dear Nigel, > > > > Thanks a ton for the script..It works fine though it skips the first > > record > &g

Re: Regular Expression Help sought

2002-07-03 Thread Katy Brownfield
r > To: Nigel Peck > Cc: [EMAIL PROTECTED] > Sent: 7/3/02 6:51 PM > Subject: Re: Regular Expression Help sought > > Dear Nigel, > > Thanks a ton for the script..It works fine though it skips the first > record > even though I make > the file begin with a blank

RE: Regular Expression Help sought

2002-07-03 Thread Timothy Johnson
I think you'll need 2 blank lines. -Original Message- From: Sunish Kapoor To: Nigel Peck Cc: [EMAIL PROTECTED] Sent: 7/3/02 6:51 PM Subject: Re: Regular Expression Help sought Dear Nigel, Thanks a ton for the script..It works fine though it skips the first record even though I

Re: Regular Expression Help sought

2002-07-03 Thread Sunish Kapoor
Dear Nigel, Thanks a ton for the script..It works fine though it skips the first record even though I make the file begin with a blank line by simply hitting enter ! Regards Sunish Nigel Peck wrote: > My first attempt, which may be a bit simplified, would be to substitute > any newline, which

Regular Expression Help sought

2002-07-03 Thread Sunish Kapoor
Hi All, I am new to Perl and need help to solve this one ! I have a txt file and the contents of the file are as below : ---CONTENTS OF TEXT FILE-- Abdullah Ahmed Hassan Trading Location Ruwi Souk St, Ruwi Bus Hrs 0930-1300:1630-2200 P.O. Box 197 Ruwi