(PHP 5 >= 5.2.0, PHP 7, PHP 8)
This recursive iterator can filter another recursive iterator via a regular expression.
$iterator
, string $pattern
, int $mode
= RecursiveRegexIterator::MATCH
, int $flags
= 0
, int $pregFlags
= 0
)