regex = $regex; } /** \return whether the current key mathes the regular expression */ function accept() { return ereg($this->regex, $this->getInnerIterator()->key()); } /** @return regular expression used as filter */ function getRegex() { return $this->regex; } /** * hidden __clone */ protected function __clone() { // disallow clone } } ?>