in reply to How to extract text present in 3 lines within the HTML tags

Let somebody else write the regexes for you:
use Mojo::DOM; print Mojo::DOM->new->parse($yourtext)->at('title')->text;

Requires Mojolicious to be installed.

Replies are listed 'Best First'.
Re^2: How to extract text present in 3 lines within the HTML tags
by Anonymous Monk on May 17, 2011 at 07:33 UTC
      and since that snippet is XML valid, you can use XML::Twig
Re^2: How to extract text present in 3 lines within the HTML tags
by raybies (Chaplain) on May 17, 2011 at 12:41 UTC

    moritz wrote: Let somebody else write the regexes for you:

    He kinda did, by asking perlmonks... :)