#!/usr/bin/perl
use strict;
use warnings;
while (<DATA>) {
if (m~<td\s+height[^>]+>(.+)</td>~) {
my $found = $1;
$found =~ s~ ~~g;
$found =~ s~</?font[^>]*>~~g;
$found =~ s~</?b>~~g;
$found =~ s~^\s+~~;
$found =~ s~\s+$~~;
print "gefunden: [$found]\n";
}
}
__DATA__
<html>
<body>
<head>
<TITLE>
Testseite
</TITLE>
</head>
<table width="400" style="border-collapse: collapse" bordercolor="#B3B3C1" cellpadding="0" border="1" cellspacing="0">
<tr>
<td height=25 valign=middle bgcolor="#336699"> <font color="#FFFFFF">Aktivität </font> </td>
<td height=25 valign=middle bgcolor="#F4F4F4"> <b>Doktor</b></td>
</tr>
<tr>
<td height=25 valign=middle bgcolor="#336699"> <font color="#FFFFFF">Land </font> </td>
<td height=25 valign=middle bgcolor="#F4F4F4"> <b>Deutschland </b> ...</td>
</tr>
</table>
</body></html>