(PHP 5 >= 5.2.0, PHP 7)
Create a new RegexIterator
public RegexIterator::__construct ( Iterator $iterator , string $regex [, int $mode = self::MATCH [, int $flags = 0 [, int $preg_flags = 0 ]]] )
Create a new RegexIterator which filters an Iterator using a regular expression.
Parameters:
iterator
The iterator to apply this regex filter to.
regex
The