I have the following HTML-
<div>
<strong>Date: </strong>
19 July 2011
</div>
I have been using HTML::TreeBuilder to parse out particular parts of html that are using either tags or classes however the aforementioned html is giving me difficulty in trying to extract the date only.
For instance I tried-
for ( $tree->look_down( '_tag' => 'div'))
{
my $date = $_->look_down( '_tag' => 'strong' )->as_trimmed_text;
But that seems to conflict with an earlier use of <strong>.
I am looking to parse out just the '19 July 2011'. I have read the documentation on TreeBuilder but can not find a way of doing this.
How can I do this using TreeBuilder?