public function __construct($path) { $this->regex = '/^(Update[\\d]{14})((?i)\\.php)$/'; parent::__construct(new FilesystemIterator($path), $this->regex); }