Re: RegExp and XML

2003-02-21 Thread R. Joseph Newton
Vincent O' Keeffe wrote: > > ... > > > So, I need to remove everything before the opening everything after the closing tag. I thought about stripping out the first 4 > and last 4 lines of the file but the messages sometimes arrive clean, and sometimes > with this extra info. Hi Vincent, Re

Re: RegExp and XML

2003-02-21 Thread John Baker
On Fri, 21 Feb 2003, John Baker wrote: > Date: Fri, 21 Feb 2003 09:37:34 -0500 (EST) > From: John Baker <[EMAIL PROTECTED]> > To: Vincent O' Keeffe <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: Re: RegExp and XML > > > Here's one way: >

Re: RegExp and XML

2003-02-21 Thread John Baker
Here's one way: my @woo; my $xml; foreach (@woo) { $xml .= $_, if (m/\<\?xml\s/.../\<\/Order/); } You could also set the upper and lower bounds with scalars: my $upper = '\<\?xml\s'; my $lower = '\<\/Order'; foreach (@woo) { $xml .= $_, if (m/^$upper/.../^$lower/);

RE: RegExp and XML

2003-02-21 Thread wiggins
On Fri, 21 Feb 2003 14:16:11 -, "Vincent O' Keeffe" <[EMAIL PROTECTED]> wrote: > Hi there, > > I'm downloading xml files from a mail server using POP3Client. I'm saving these >mails as files on a directory. I also parse out certain details f