Use re.DOTALL to also match newlines with .