Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/08/2010, 12:31
Hidek1
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 14 años, 6 meses
Puntos: 334
Respuesta: Ayuda con expresión regular

prueba asi..


Código PHP:
Ver original
  1. $string = "Info:&nbsp;<b> Art Academy (Europe)</b><br />";
  2. preg_match('/<b>\s*([\w ]+?)\s*(\(\w+?\))<\/b>/', $string, $matches);
  3. echo $matches[1];
  4. echo $matches[2];
__________________
More about me...
~ @rhyudek1
~ Github