def findall(pattern, string, flags=<NUM_LIT:0>):
return _compile(pattern, flags).findall(string)<EOL>def finditer(pattern, string, flags=<NUM_LIT:0>):<EOL><INDENT>"""<STR_LIT>"""<EOL>return _compile(pattern, flags).finditer(string)<EOL><DEDENT>
Return a list of all non-overlapping matches in the string.

    If one or more groups are present in the pattern, return a
    list of groups; this will be a list of tuples if the pattern
    has more than one group.

    Empty matches are included in the result.