Re: 'medium' reg exp greediness?
- From: "DJ Stunks" <DJStunks@xxxxxxxxx>
- Date: 29 Apr 2006 10:57:14 -0700
Alan Campbell wrote:
hello folks,
< home-made XML parsing scrip snipped >
Any ideas on how best to reg exp this? Or do I just need to improve/narrow my search string.
Don't use regular expressions to parse XML. Use an XML parser to parse
XML, such as XML::Simple.
To further complicate life, I cant guarentee the level of nesting.
And that's one good reason why.
Or, alternatively, ask robic to have a look at his XML parsing regular
expression and enjoy your stay in A World of Pain.
-jp
.
- References:
- 'medium' reg exp greediness?
- From: Alan Campbell
- 'medium' reg exp greediness?
- Prev by Date: Re: Replying to the perl list (was Re: problem with whitespace notsplitting on split.)
- Next by Date: Using Perl-Archive_Toolkit (PAR) with Win32::OLE to make standalone exe
- Previous by thread: 'medium' reg exp greediness?
- Next by thread: Re: 'medium' reg exp greediness?
- Index(es):
Relevant Pages
|