Ver Mensaje Individual
  #4 (permalink)  
Antiguo 25/08/2010, 07:35
Hidek1
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 16 años, 11 meses
Puntos: 334
Respuesta: Ayuda con expresión regular

Código PHP:
$string = utf8_decode('foáo = "holááááooo don";');
$string = preg_replace_callback('/(["\'])(.*?)\1/', create_function('$e', "return \$e[1].htmlentities(\$e[2]).\$e[1];"), $string);
echo 
$string; 

:P
__________________
More about me...
~ @rhyudek1
~ Github