$in";
$lines = file('http://wotan.liu.edu/home/krichel/index.html');
$html = implode('', $lines);
$html_rest=$html;
$count=0;
$reg='!([^>]+>|<[^/]+/>)!';
while(preg_match($reg,$html_rest,$matches)) {
$html_rest=preg_replace($reg,'', $html_rest);
print "element ".$matches[1]. "found
\n";
}
#$html_out=preg_replace('/','<', $html_rest) ;
#print "
$html_out"; ?>