Ciao oly,
SI effetivamente usando preg_replace ho risolto... e con la giusta funzione logica...
Stavo usando str_replace pero preg è idóneo.

Grazie