Make A Dot Match Newline in the re Module in Python Oct 23, 2019 Comment¶ Pass re.DOTALL to the option flags to make a dot match newlines as well.