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

        return $matches ? : array();
    }
public static function get($pattern, $subject, $option = '')
    {
        static::setUp($pattern);
        \mb_ereg_search_init($subject, $pattern, $option);
        $matches = \mb_ereg_search_regs();
        static::tearDown();

        return $matches ? : array();
    }
Regular expression match and return first match.

@param string $pattern Pattern
@param string $subject Subject
@param string $option  Option
@return string[] Array with first match that matches given subject, empty array otherwise
@throws MbRegexException When compilation error occurs
@link http://php.net/function.mb-ereg-search-regs.php