src/Gobie/Regex/Wrappers/Mb/MbRegex.php
public static function match($pattern, $subject, $option = '')
    {
        static::setUp($pattern);
        \mb_ereg_search_init($subject, $pattern, $option);
        $res = \mb_ereg_search();
        static::tearDown();

        return (bool) $res;
    }
public static function match($pattern, $subject, $option = '')
    {
        static::setUp($pattern);
        \mb_ereg_search_init($subject, $pattern, $option);
        $res = \mb_ereg_search();
        static::tearDown();

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

@param string $pattern Pattern
@param string $subject Subject
@param string $option  Option
@return bool True if pattern matches given subject, false otherwise
@throws MbRegexException When compilation error occurs
@link http://php.net/function.mb-ereg-search.php