Ver Mensaje Individual
  #8 (permalink)  
Antiguo 15/07/2009, 15:35
Avatar de abimaelrc
abimaelrc
Colaborador
 
Fecha de Ingreso: mayo-2009
Ubicación: En el planeta de Puerto Rico
Mensajes: 14.734
Antigüedad: 15 años
Puntos: 1517
Respuesta: Expresiones regulares

Verifica si esto te resuelve

Código PHP:
$text '<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>'
;

$text strip_tags($text);

preg_match("|\w*\.\w{2,6}|"$text$url);
preg_match_all("|/\w*\.\w{2,6}|",$text,$web);

for(
$i=0$i<count($web[0]); $i++){
    
$string $url[0].$web[0][$i];
    
$h trim("http://".$string);
    echo 
$h."<br />";