private function match($pattern, $subject, & $matches)
    {
        $matches = [];
        $subject = (string) $subject;

        if ($this->allowNonAscii || preg_match('/^[\\x00-\\x7F]*$/', $subject)) {
            if (preg_match($pattern, $subject, $match)) {
                $matches = $this->getNamedPatterns($match);

                return true;
            }
        }

        return false;
    }
private function match($pattern, $subject, & $matches)
    {
        $matches = [];
        $subject = (string) $subject;

        if ($this->allowNonAscii || preg_match('/^[\\x00-\\x7F]*$/', $subject)) {
            if (preg_match($pattern, $subject, $match)) {
                $matches = $this->getNamedPatterns($match);

                return true;
            }
        }

        return false;
    }
private function match ( $ pattern , $ subject , & $ matches ) { $ matches = [ ] ; $ subject = ( string ) $ subject ; if ( $ this -> allowNonAscii || preg_match ( '/^[\\x00-\\x7F]*$/' , $ subject ) ) { if ( preg_match ( $ pattern , $ subject , $ match ) ) { $ matches = $ this -> getNamedPatterns ( $ match ) ; return true ; } } return false ; }
Matches the subject against the pattern and provides the literal sub patterns.
@param string $pattern The pattern to use for matching
@param string $subject The subject to match
@param array $matches The provided list of literal sub patterns
@return bool True if the pattern matches, false if not
Matches the subject against the pattern and provides the literal sub patterns .