I am getting the error in this code:
$pattern="{[^}]*}";
$this->output = preg_replace($pattern, "", $this->output);
I am getting the error in this code:
$pattern="{[^}]*}";
$this->output = preg_replace($pattern, "", $this->output);
You need to escape the curly bracket:
$pattern="{[^\}]*}";
If your delimiters are {
and }
.
But I think you miss the regular expression delimiter:
$pattern="/\{[^\}]*\}/";