src/PcreExtension.php
public function getAll($value, $pattern, $group = 0)
    {
        if (!isset($value)) {
            return null;
        }
        
        return preg_match_all($pattern, $value, $matches, PREG_PATTERN_ORDER) && isset($matches[$group])
            ? $matches[$group] : [];
    }
public function getAll($value, $pattern, $group = 0)
    {
        if (!isset($value)) {
            return null;
        }
        
        return preg_match_all($pattern, $value, $matches, PREG_PATTERN_ORDER) && isset($matches[$group])
            ? $matches[$group] : [];
    }
public function getAll ( $ value , $ pattern , $ group = 0 ) { if ( ! isset ( $ value ) ) { return null ; } return preg_match_all ( $ pattern , $ value , $ matches , PREG_PATTERN_ORDER ) && isset ( $ matches [ $ group ] ) ? $ matches [ $ group ] : [ ] ; }
Perform a regular expression match and return the group for all matches.

@param string $value
@param string $pattern
@return array
Perform a regular expression match and return the group for all matches .