protected function colorizeText($text) { return preg_replace_callback(self::FORMAT_PATTERN, array($this, 'replaceStyle'), $text); }