<?php $x = 'ciao </container> e <container tipo="autore"> ciao'; $string = preg_replace('#.+([^\>]+)\<container tipo="autore"\>.+#', 'X\1X', $x); echo $string;
You have javascript disabled. You will not be able to edit any code.