Think about Loose Coupling | |
PerlMonks |
Re: Match on line, read backwards to opening xml tag then forward to closing tagby mrguy123 (Hermit) |
on Nov 15, 2011 at 07:44 UTC ( [id://938097]=note: print w/replies, xml ) | Need Help?? |
Hi, I also believe that it is best to use a proper XML parser if you can, but I have encountered similar problems with non XML data, and then you do need to use regexes. I think this is a nice workaround that will solve your problem (I hope) Please let me know if this works for you mrguy "Unix is user friendly - it's just a bit more choosy about who it's friends are."
In Section
Seekers of Perl Wisdom
|
|