src/Gobie/Regex/Wrappers/Pcre/PcreRegex.php
public static function match($pattern, $subject, $offset = 0)
    {
        static::setUp($pattern);
        $res = \preg_match($pattern, $subject, $matches, 0, $offset);
        static::tearDown();
        static::handleError($pattern);

        return (bool) $res;
    }
public static function match($pattern, $subject, $offset = 0)
    {
        static::setUp($pattern);
        $res = \preg_match($pattern, $subject, $matches, 0, $offset);
        static::tearDown();
        static::handleError($pattern);

        return (bool) $res;
    }
Regular expression match and return if pattern matches given subject.

@param string $pattern Pattern
@param string $subject Subject
@param int    $offset  Offset
@return bool True if pattern matches given subject, false otherwise
@throws PcreRegexException When compilation or runtime error occurs
@link http://php.net/function.preg-match.php