Ver Mensaje Individual
  #5 (permalink)  
Antiguo 15/05/2008, 11:52
Avatar de pateketrueke
pateketrueke
Modernizr
 
Fecha de Ingreso: abril-2008
Ubicación: Mexihco-Tenochtitlan
Mensajes: 26.399
Antigüedad: 16 años
Puntos: 2534
Re: Necesito regex para quitar quotes.

mira

Código PHP:
$post "
esto va fuera...
    [quote1048121=me]
        estaba pensando en mi... but, are not equal...<br /><br />
        these are my flowers than the flowers are mine
    [/quote1048121] del quote?
"
;
$_post=preg_replace('/\[(quote[^\]=]*)=(.+?)\](.+?)\[\/\\1\]/is'''$post);

print 
strlen($post)."<pre>$post</pre>";
print 
strlen($_post)."<pre>$_post</pre>"
a mi me funciona perfectamente...