in reply to extracting attribute from HTML tag
$s = "(<a class='team' href='javascript:void(0)' title='(PEN.66) O FLY +NN RILEY (51)'>"; $s =~ /title='([^']+)'/; print "title: $1\n";
That returns:
title: (PEN.66) O FLYNN RILEY (51)
For other similar examples, you may want to check out Teach Yourself Perl in 21 Days: Day 10 (img.pl). That example shows a decent (but not comprehensive) way to extract attributes from HTML tags.
Hope this helps.
|
|---|