Ti ringrazio per la risposta, ma sono impedito..
..e ignorante con le regexp!
Dato il seguente esempio:
Codice PHP:
$text "
<h1>Il titolo e': {text}</h>\n


{hello}</p>
"
;

$text eregi_replace("{text}""Ciao mondo"$text);
$text eregi_replace("{hello}""hello world"$text);
echo 
$text
ottengo
codice:
Il titolo e': Ciao mondo
hello world
Ma usando preg_replace
Codice PHP:
$text "
<h1>Il titolo e': {text}</h>\n


{hello}</p>
"
;

$text preg_replace("{text}""Ciao mondo"$text);
$text preg_replace("{hello}""hello world"$text);
echo 
$text
Il risultato e'
codice:
Il titolo e': {Ciao mondo}
{hello world}
Cosa sbaglio?