Código PHP:
<tr><td colspan="5" class="table_bg" height="20" >Malicious URLs on <b>bbssifu.cn</b></td>
</tr><tr><td style="padding:10px;"><pre>/01.htm
/123.htm
/a.exe</pre></td></tr>
Código PHP:
$str = trim($text);
$str = preg_replace("/\s\s+/", ' ', $str);
$regExp1="/([^ ]+\.[a-zA-Z]{1,4}[$ ]*)/";
preg_match_all($regExp1, $str, $patron1);
$regExp2="/(\/[^ ]*)/";
preg_match_all($regExp2, $str, $patron2);
$count1 = count($patron2[1]);
for ($row1 = 0; $row1 < $count1 ; $row1++) {
$string = trim($patron1[1][0]).trim($patron2[1][$row1]);
$string = ereg_replace(" ", "", $string);
$h = trim("http://".$string);
echo $h."<br>";
}