Ver Mensaje Individual
  #10 (permalink)  
Antiguo 07/04/2010, 12:50
Hidek1
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 14 años, 6 meses
Puntos: 334
Respuesta: Encontrar html con expresiones regulares

y yo que lo estaba haciendo..

bueno este fue el resultado
Código PHP:
Ver original
  1. <?php
  2. $texto = '<a href="http://www.artofillusion.org">www.artofillusion.org</a><br><a href="textures.html"><strong><h2>5.1 Textures</h2></strong></a>';
  3. preg_match('%<a([^>]*)>.*<h([32])>.*</h\2>.*</a>%is', $texto, $matches);
  4. print_r($matches);
  5. ?>


PD: gracias por la info...
apenas recuerde para que lo necesitaba tanto hace un tiempo lo usare :P
__________________
More about me...
~ @rhyudek1
~ Github