# The RecursiveRegexIterator class

(PHP 5 >= 5.2.0, PHP 7)

## Introduction

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

## Class synopsis

RecursiveRegexIterator extends RegexIterator implements RecursiveIterator {
/* Inherited constants */
const int MATCH = 0 ;
const int GET_MATCH = 1 ;
const int ALL_MATCHES = 2 ;
const int SPLIT = 3 ;
const int REPLACE = 4 ;
const int USE_KEY = 1 ;
/* Methods */
public __construct ( RecursiveIterator `$iterator` , string `$regex` [, int `$mode` = self::MATCH [, int `$flags` = 0 [, int `$preg_flags` = 0 ]]] )
public getChildren ( ) : RecursiveRegexIterator
public hasChildren ( ) : bool
/* Inherited methods */
public RecursiveIterator::getChildren ( ) : RecursiveIterator
public RecursiveIterator::hasChildren ( ) : bool
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 `$preg_flags` ) : void
}

## Table of Contents

- 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