# A classe RecursiveRegexIterator

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

## Introdução

Este iterador recursivo pode filtrar outro iterador recursivo por meio de uma expressão regular.

## Resumo da classe

class RecursiveRegexIterator extends RegexIterator implements RecursiveIterator {
/* Constantes herdadas */
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;
/* Propriedades herdadas */
public ?string $replacement = null;
/* Métodos */
public function __construct(
RecursiveIterator `$iterator`,
string `$pattern`,
int `$mode` = `RecursiveRegexIterator::MATCH`,
int `$flags` = 0,
int `$pregFlags` = 0
)
public function getChildren(): RecursiveRegexIterator
public function hasChildren(): bool
/* Métodos herdados */
public function RegexIterator::accept(): bool
public function RegexIterator::getFlags(): int
public function RegexIterator::getMode(): int
public function RegexIterator::getPregFlags(): int
public function RegexIterator::getRegex(): string
public function RegexIterator::setFlags(int `$flags`): void
public function RegexIterator::setMode(int `$mode`): void
public function RegexIterator::setPregFlags(int `$pregFlags`): void
public function FilterIterator::accept(): bool
public function FilterIterator::current(): mixed
public function FilterIterator::key(): mixed
public function FilterIterator::next(): void
public function FilterIterator::rewind(): void
public function FilterIterator::valid(): bool
public function IteratorIterator::current(): mixed
public function IteratorIterator::getInnerIterator(): ?Iterator
public function IteratorIterator::key(): mixed
public function IteratorIterator::next(): void
public function IteratorIterator::rewind(): void
public function IteratorIterator::valid(): bool
}

## Índice

- RecursiveRegexIterator::__construct — Cria um novo RecursiveRegexIterator
- RecursiveRegexIterator::getChildren — Retorna um iterador para a entrada atual
- RecursiveRegexIterator::hasChildren — Retorna se um iterador pode ser obtido para a entrada atual

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