src/Formatters/Formatter.php
public function regex($array = [])
    {
        $filtered = [];
        foreach ($array as $key => $value) {
            if ($this->isRegex($key)) {
                $filtered[$key] = $value;
            }
        }

        return $filtered;
    }
public function regex($array = [])
    {
        $filtered = [];
        foreach ($array as $key => $value) {
            if ($this->isRegex($key)) {
                $filtered[$key] = $value;
            }
        }

        return $filtered;
    }
public function regex ( $ array = [ ] ) { $ filtered = [ ] ; foreach ( $ array as $ key => $ value ) { if ( $ this -> isRegex ( $ key ) ) { $ filtered [ $ key ] = $ value ; } } return $ filtered ; }
Filter an array where the key is a regex string.

@param array $array

@return array
Filter an array where the key is a regex string .