Implement SPL RecursiveRegexIterator