RegexIterator and public api