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