public function accept()
    {
        $path = ($this->mode & self::FILTER_VALUE) ? $this->current() : parent::key();

        if (0 !== strpos($path, $this->staticPrefix)) {
            return false;
        }

        $result = (bool) preg_match($this->regExp, $path);

        return $result;
    }
public function accept()
    {
        $path = ($this->mode & self::FILTER_VALUE) ? $this->current() : parent::key();

        if (0 !== strpos($path, $this->staticPrefix)) {
            return false;
        }

        $result = (bool) preg_match($this->regExp, $path);

        return $result;
    }
public function accept ( ) { $ path = ( $ this -> mode & self :: FILTER_VALUE ) ? $ this -> current ( ) : parent :: key ( ) ; if ( 0 !== strpos ( $ path , $ this -> staticPrefix ) ) { return false ; } $ result = ( bool ) preg_match ( $ this -> regExp , $ path ) ; return $ result ; }
Accepts paths matching the glob.

@return bool Whether the path is accepted.
Accepts paths matching the glob .