Ver Mensaje Individual
  #8 (permalink)  
Antiguo 14/02/2014, 12:33
Avatar de pateketrueke
pateketrueke
Modernizr
 
Fecha de Ingreso: abril-2008
Ubicación: Mexihco-Tenochtitlan
Mensajes: 26.399
Antigüedad: 16 años, 1 mes
Puntos: 2534
Respuesta: extraer imagen

Con el HTML que muestras al inicio funciona perfectamente.

Código PHP:
Ver original
  1. $html = '<div style="position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 2; display: none;" class="galleria-layer"></div><img src="Descubren%20fraude%20millonario%20de%20empleados%20de%20Estaciono%CC%81metros_files/img_52fb0bef6c3a5.jpg" style="display: block; opacity: 1; width: 410px; height: 308px; position: absolute; top: -15px; left: 0px;" height="308" width="410"></div>';
  2. $regex = '/class="galleria-layer".*<img.*src="(.+?)">/';
  3.  
  4. var_dump(preg_match_all($regex, $html, $matches));
  5. var_dump($matches);

Si pudieras mostrar la fuente real de dicho HTML sería bueno para entender lo que sucede.
__________________
Y U NO RTFM? щ(ºдºщ)

No atiendo por MP nada que no sea personal.