re.compile(pattern, flags=0) re.search(pattern, string, flags=0) re.match(pattern, string, flags=0) re.fullmatch(pattern, string, flags=0) re.split(pattern, string, maxsplit=0, flags=0) re.findall(pattern, string, flags=0) re.finditer(pattern, string…