<?php $text = "prova %[ciao]%"; $text = preg_replace('/\{([^\} ]+)\}/ime', '%[$1]%', $text); echo "TESTO" . $text;
You have javascript disabled. You will not be able to edit any code.