Ver Mensaje Individual
  #3 (permalink)  
Antiguo 29/01/2012, 15:15
SurKaiser
 
Fecha de Ingreso: enero-2012
Ubicación: localhost
Mensajes: 37
Antigüedad: 12 años, 3 meses
Puntos: 10
Respuesta: Sacar texto con preg_match_all

Cita:
Iniciado por ZiTAL Ver Mensaje
Código PHP:
Ver original
  1. <?php
  2. $txt = '<a href="/inicio/tags/hola" class="tag" rel="nofollow">Hola</a>
  3. <a href="/inicio/tags/megaupload" class="link" rel="bookmark">jajad</a>
  4. <a href="/inicio/tags/mediafire" >Mslfjsd</a>';
  5.  
  6. preg_match_all("/\<a href=\"\/inicio\/tags\/(\w+)/", $txt, $match);
  7.  
  8. echo "<pre>";
  9. print_r($match[1]);
  10. echo "</pre>";
  11. ?>
Gracias amigo!! .... me funciono de maravilla :P
__________________
"El Conocimiento Es Poder
Mente Comunal - Diversidad Colectiva