in reply to Matching regular expression over multiple lines
use HTML::TagParser; my $html = qq[ <blockquote> <p><b>Joos van Cleve</b> - Lucretia (detail)</p> </blockquote> <p>beautiful</p> </blockquote> <p>indeed I am</p> <footer> ]; my $parser = HTML::TagParser->new( $html ); print $parser->getElementsByTagName( "footer" )->previousSibling->inne +rText;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Matching regular expression over multiple lines
by LanX (Saint) on Oct 15, 2017 at 11:52 UTC | |
|
Re^2: Matching regular expression over multiple lines
by Maire (Scribe) on Oct 16, 2017 at 05:53 UTC | |
|
Re^2: Matching regular expression over multiple lines
by Anonymous Monk on Oct 15, 2017 at 23:41 UTC | |
by LanX (Saint) on Oct 16, 2017 at 01:52 UTC |