for match in re.finditer(pattern,text): ...