Hola a todos.
Estoy haciendo una especie de robot que me coja una serie de noticias y no se si esto está bien, me sale solo Array.
Código PHP:
<?php
$contenido=file_get_contents('http://www.pagina.es');
$regexp = '/(?:<div \>)(?:<a href="news\/153\/ARTICLE\/.*\/\.html>)?(.+)(?:<\/a>)?(?:<br>)/';
preg_match_all($regexp,$contenido,$matches);
echo($matches[1]);
?>
Y esque entre ARTICLE\
(AQUI)\.html hay otra carpeta diferente como una fecha y luego otro nombre diferente.
Ejemplo:
news/153/ARTICLE/15692/2011-06-22.html
¿Cómo lo hariais?