2 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
<html>
<head>
<title>No Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="100" border="0" cellspacing="0" cellpadding="0"><tr><td> </td></tr></table>
<table width="100" border="0" cellspacing="0" cellpadding="0"><tr><td> </td></tr></table>
<table width="100" border="0" cellspacing="0" cellpadding="0"><tr><td> </td></tr></table>
<table width="100" border="0" cellspacing="0" cellpadding="0"><tr><td> </td></tr></table>
</body>
</html>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /usr/bin/perl
use strict;
use warnings;
my $file = './pfad/zu/html.datei';
open(R_HTML,"<$file") or die $!;
my $content = join("",<R_HTML);
close R_HTML;
my ($erstes_table) = $content =~ /(<table[^>]+>.*?<\/table>)/;
print $erstes_table;
2 Einträge, 1 Seite |