Make the '.' special character match any character at all, including a newline; without this flag, '.' will match anything except a newline.
re.S