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

        return \array_filter($matches);
    }
public static function getAll($pattern, $subject, $flags = \PREG_PATTERN_ORDER, $offset = 0)
    {
        static::setUp($pattern);
        \preg_match_all($pattern, $subject, $matches, $flags, $offset);
        static::tearDown();
        static::handleError($pattern);

        return \array_filter($matches);
    }
Global regular expression match and return all matches.

@param string $pattern Pattern
@param string $subject Subject
@param int    $flags   Flags
@param int    $offset  Offset
@return string[][] Array of matches that match given subject, empty array otherwise
@throws PcreRegexException When compilation or runtime error occurs
@link http://php.net/function.preg-match-all.php