Ver Mensaje Individual
  #10 (permalink)  
Antiguo 25/06/2013, 11:25
hackabyss01
 
Fecha de Ingreso: mayo-2013
Mensajes: 8
Antigüedad: 13 años, 5 meses
Puntos: 0
Respuesta: Expresiones regulares PCRE

Código PHP:
        $html = '<tr>
                <td id="menu"><a href="">Hello world</a></td>
                <td id="menu"><a href="">Another menu</a></td>
                <td id="menu"><a href="">Another menu</a></td>
                <td id="menu"><a href="">Another menu</a></td>
            </tr>'
;
        
        
$pattern = "@<tr>([.\s\t\n\"\/]*)</tr>@im";
        
preg_match($pattern, $html, $match);
        
        echo 
$match[1]; 
Ese es el ejemplo que estoy probando para patrones por si era cosa del contenido del otro documento pero con éste tampoco funciona.