Ver Mensaje Individual
  #7 (permalink)  
Antiguo 05/04/2010, 10:53
Hidek1
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 14 años, 6 meses
Puntos: 334
Respuesta: subcadena comprendida entre tags html

bueno debes usar el tercer parametro de preg_match y encerrar las capturas con ( )
Código PHP:
Ver original
  1. $patron = "/<title>(.*)<\/title>/i";
  2. $hallazgo = preg_match($patron, $texto, $matches);
  3. print_r($matches);
__________________
More about me...
~ @rhyudek1
~ Github