in reply to Re: XML::LibXML - How to extract an element including the elements within?
in thread XML::LibXML - How to extract an element including the elements within?

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

  • Comment on Re^2: XML::LibXML - How to extract an element including the elements within?
  • Download Code