7: SyntaxWarning: invalid escape sequence '\Z' x = re.findall("Spain\Z", str) ['Spain'] Yes, there is a match!