Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: XML::LibXML - How to extract an element including the elements within?by TravelAddict (Acolyte) |
on May 10, 2019 at 19:37 UTC ( [id://1233581]=note: print w/replies, xml ) | Need Help?? |
Thanks tangent I was actually thinking about doing what you suggest, except that I was thinking this: $string =~ s/^(.*?)<text>(.*?)</text>(.*?)$/$2/sm; I finally decided to go with the solution that poj suggested, it looks quite clean. TA
In Section
Seekers of Perl Wisdom
|
|