Ver Mensaje Individual
  #7 (permalink)  
Antiguo 08/03/2009, 10:13
Avatar de Ronruby
Ronruby
 
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 15 años, 9 meses
Puntos: 416
Respuesta: ayuda con funcion preg_match_all

Código PHP:
<?php
$texto 
'<a title="Presiento - rakin y ken-y" href="lista.php?v=1a3bxc4" class="escuchar">
<a title="Presiento1 - rakin y ken" href="lista.php?v=1c3b5f2" class="escuchar">
<a title="Presiento2 - rakin y ken" href="lista.php?v=1e3b5hd" class="escuchar">
<a title="Presiento3 - rakin y ken" href="lista.php?v=1f3b5rv" class="escuchar">
<a title="Presiento4 - rakin y ken" href="lista.php?v=1d3b5s3" class="escuchar">'
;
echo 
preg_match_all("/title=\"(.*)\" href=\"lista.php\?v=([a-z0-9]+)\"/i"$texto$matches);

echo 
'<pre>'.print_r($matchestrue).'</pre>';
?>
¿Algo asi?