Re: Need Regex help !!

2003-07-11 Thread Kevin Pfeiffer
In article <[EMAIL PROTECTED]>, Rob Dixon wrote: > Pandey Rajeev-A19514 wrote: >> >> Rob ANderson wrote: >> > >> > Pandey Rajeev-A19514 wrote: >> > > >> > > In short, I have a defined set of pattern that can occur across any >> > > number of lines(scalars) in a buffer (array of scalars) > and I ne

Re: Need Regex help !!

2003-07-11 Thread Rob Dixon
Pandey Rajeev-A19514 wrote: > > Rob ANderson wrote: > > > > Pandey Rajeev-A19514 wrote: > > > > > > In short, I have a defined set of pattern that can occur across any number of > > > lines(scalars) in a buffer (array of scalars) and I need to print only those lines(Scalars) that contain the full

RE: Need Regex help !!

2003-07-11 Thread Pandey Rajeev-A19514
will send a bigger mail. Regards Rajeev -Original Message- From: Rob Anderson [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2003 3:13 PM To: [EMAIL PROTECTED] Subject: Re: Need Regex help !! Hi Rajeev, I'm not sure why you feel the need to join your buffer into a big string. >From

Re: Need Regex help !!

2003-07-11 Thread Rob Anderson
Hi Rajeev, I'm not sure why you feel the need to join your buffer into a big string. >From what you describe couldn't you just process each buffer element one by one? foreach my $buffer_entry (@buff) { if($buffer_entry =~ /(FastEthernet|down)/i) { print $buffer_entry; } } Let us