Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/03/2012, 03:53
Avatar de ZiTAL
ZiTAL
 
Fecha de Ingreso: marzo-2004
Ubicación: Bermio (Bizkaia)
Mensajes: 1.545
Antigüedad: 20 años, 2 meses
Puntos: 62
Respuesta: Expresión regular y nuevas líneas

Código PHP:
Ver original
  1. preg_match_all("/<div id=\"contain\">([\w\W]+)<\/div>/", $text, $matches);
  2. print_r($matches);

http://stackoverflow.com/a/4026233/454827
__________________
http://zital.no-ip.org
____________________

Euskerie ahuen eta bijotzan