public function getMatches(VerbalExpression $verbalExpression, $test)
    {
        $matches = array();

        preg_match($verbalExpression, $test, $matches);

        return $matches;
    }
public function getMatches(VerbalExpression $verbalExpression, $test)
    {
        $matches = array();

        preg_match($verbalExpression, $test, $matches);

        return $matches;
    }
public function getMatches ( VerbalExpression $ verbalExpression , $ test ) { $ matches = array ( ) ; preg_match ( $ verbalExpression , $ test , $ matches ) ; return $ matches ; }
Get all matches for the expression

@param VerbalExpression $verbalExpression Pattern to match
@param string           $test             String to test

@return string[]
Get all matches for the expression