Support regular expression iteration