protected function appendToGroup($groupHeader, $text, $pattern) {
        $this->groups[$groupHeader][] = trim(preg_replace($pattern, '', $text));
    }
protected function appendToGroup($groupHeader, $text, $pattern) {
        $this->groups[$groupHeader][] = trim(preg_replace($pattern, '', $text));
    }
protected function appendToGroup ( $ groupHeader , $ text , $ pattern ) { $ this -> groups [ $ groupHeader ] [ ] = trim ( preg_replace ( $ pattern , '' , $ text ) ) ; }
Appends a message to a group

@param string $groupHeader
@param string $text
@param string $pattern
Appends a message to a group