(.*?)<\/TD>/s",
$result,
$out,
PREG_PATTERN_ORDER);
for( $i=0; $i < count($out[1]); $i++) {
$tmp = trim($out[1][$i]);
$tmp = str_replace(" ", " ", $tmp);
$tmp = trim($tmp);
if( $tmp == '' || $tmp == ' ' || $tmp == ' ' ) continue;
if( strstr($tmp, "onClick") ) continue;
if( strstr($tmp, '
') ) {
$tmp2 = strstr($tmp, '
');
$tmp2 = substr($tmp2, 4, strlen($tmp2));
echo trim($tmp2)."\r\n";
} else {
echo $tmp."\r\n";
}
}
}
?>