Re: Re: Perl Regex

2010-03-26 Thread Mark Bergeron
Does this have to be hard coded in to the script? Just wondering since I have been kinda following this thread.Feb 26, 2010 01:56:02 PM, perl-win32-users-boun...@listserv.activestate.com wrote: It looks like what u want to do is attribute folding. That's when u take anested XML tag and make it an

Re: Perl Regex

2010-02-28 Thread Jon Bjornstad
Yes, you could use an XML parser to do the job described below but this case is pretty simple. Here's my offering leaving out the reading/writing of the files. -- my $s = <<"EOF"; APOE e4 variant 18 arousal disorders disorders of arousal arterial blood gas tests 32 asthma

Re: Perl Regex

2010-02-26 Thread Kprasad
anhaiya - Original Message - From: "Brian Raven" To: Sent: Friday, February 26, 2010 10:22 PM Subject: RE: Perl Regex > > From: perl-win32-users-boun...@listserv.activestate.com > [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of > Kp

Re: Perl Regex

2010-02-26 Thread Chris Wagner
It looks like what u want to do is attribute folding. That's when u take a nested XML tag and make it an attribute of an enclosing tag. Ur doing something slightly different which is merging equal depth tags. The right way to do this is with an XML parser. Look into XML::Simple to get started.

RE: Perl Regex

2010-02-26 Thread Brian Raven
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Kprasad Sent: 26 February 2010 15:56 To: perl-win32-users@listserv.ActiveState.com Subject: Perl Regex > Hi All > > What will be the perfect Regular Expression to conv