http://www.perlmonks.org?node_id=10699


in reply to How can I find the contents of an HTML tag?

One obvious regex-based solution is:

if ( $html =~ m#<TR><TD>Foo:</TD><TD> (.*) </TD></TR># ) { $var = $1; }