I want to remove HTML comments from an html text
heading some text <-- con --> more text
re.sub("(?s)", "", s)
or
re.sub("", "", s, flags=re.DOTALL)