Hmm, no wonder I was having confusing problems lol.. thanks for spotting that..
Although, it still doesn't appear to be working properly :quiet:
<?php
$str = '{first block of stuff} [something in between] {more stuff after}';
echo ereg_replace("{*}", "newvalue", $str);
?>
is outputting:
{first block of stuffnewvalue [something in between] {more stuff afternewvalue
i.e. just replacing the last }
Does the same with your code with the ( )'s in too.
I've played about with various backslash combinations but still having the same problem, lol.