public function parseBlockSimple($text) { foreach (['centre'] as $tag) { $text = preg_replace("#\\[{$tag}](.*?)\\[/{$tag}\\]#s", "[{$tag}:{$this->uid}]\\1[/{$tag}:{$this->uid}]", $text); } return $text; }