# The RecursiveRegexIterator class

(PHP 5 >= 5.2.0, PHP 7, PHP 8)

## Einführung

This recursive iterator can filter another recursive iterator via a regular expression.

## Klassenbeschreibung

class RecursiveRegexIterator extends RegexIterator implements RecursiveIterator {
/* Geerbte Konstanten */
public const int RegexIterator::USE_KEY;
public const int RegexIterator::INVERT_MATCH;
public const int RegexIterator::MATCH;
public const int RegexIterator::GET_MATCH;
public const int RegexIterator::ALL_MATCHES;
public const int RegexIterator::SPLIT;
public const int RegexIterator::REPLACE;
/* Geerbte Eigenschaften */
public ?string $replacement = null;
/* Methoden */
public __construct(
RecursiveIterator `$iterator`,
string `$pattern`,
int `$mode` = `RecursiveRegexIterator::MATCH`,
int `$flags` = 0,
int `$pregFlags` = 0
)
public getChildren(): RecursiveRegexIterator
public hasChildren(): bool
/* Geerbte Methoden */
public RegexIterator::accept(): bool
public RegexIterator::getFlags(): int
public RegexIterator::getMode(): int
public RegexIterator::getPregFlags(): int
public RegexIterator::getRegex(): string
public RegexIterator::setFlags(int `$flags`): void
public RegexIterator::setMode(int `$mode`): void
public RegexIterator::setPregFlags(int `$pregFlags`): void
public FilterIterator::accept(): bool
public FilterIterator::current(): mixed
public FilterIterator::key(): mixed
public FilterIterator::next(): void
public FilterIterator::rewind(): void
public FilterIterator::valid(): bool
public IteratorIterator::current(): mixed
public IteratorIterator::getInnerIterator(): ?Iterator
public IteratorIterator::key(): mixed
public IteratorIterator::next(): void
public IteratorIterator::rewind(): void
public IteratorIterator::valid(): bool
}

## Inhaltsverzeichnis

- RecursiveRegexIterator::__construct — Creates a new RecursiveRegexIterator
- RecursiveRegexIterator::getChildren — Returns an iterator for the current entry
- RecursiveRegexIterator::hasChildren — Returns whether an iterator can be obtained for the current entry

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open