src/Str.php
public static function match($input, $pattern, array &$matches = null, $flags = 0, $offset = 0)
    {
        return preg_match($pattern, $input, $matches, $flags, $offset);
    }
public static function match($input, $pattern, array &$matches = null, $flags = 0, $offset = 0)
    {
        return preg_match($pattern, $input, $matches, $flags, $offset);
    }
public static function match ( $ input , $ pattern , array & $ matches = null , $ flags = 0 , $ offset = 0 ) { return preg_match ( $ pattern , $ input , $ matches , $ flags , $ offset ) ; }
Searches the input string for a match to the regular expression given in pattern.

@param string $input   The input string.
@param string $pattern The pattern to search for, as a string.
@param array  $matches If matches is provided, then it is filled with the results of search.
$matches[0] will contain the text that matched the full pattern, $matches[1]
will have the text that matched the first captured parenthesized subpattern,
and so on.
@param int    $flags   The flag modifiers.
@param int    $offset  The offset from which to start the search (in bytes).

@return int Returns 1 if the pattern matches the input string, 0 if it does not, or false if an error occurred.
@see http://php.net/manual/en/function.preg-match.php
Searches the input string for a match to the regular expression given in pattern .