public function matchText($pattern, &$matches = [])
    {
        if (isset($this['params']['text'])) {
            return preg_match($pattern, $this['params']['text'], $matches);
        } else {
            return false;
        }
    }
public function matchText($pattern, &$matches = [])
    {
        if (isset($this['params']['text'])) {
            return preg_match($pattern, $this['params']['text'], $matches);
        } else {
            return false;
        }
    }
public function matchText ( $ pattern , & $ matches = [ ] ) { if ( isset ( $ this [ 'params' ] [ 'text' ] ) ) { return preg_match ( $ pattern , $ this [ 'params' ] [ 'text' ] , $ matches ) ; } else { return false ; } }
Executes regular expression match on message text
@param  string   $pattern  The pattern to search for
@param  array    $matches  Variable which will be filled with search results
@return int|bool           Returns number of times when pattern matches or FALSE on error
Executes regular expression match on message text