I am trying to replace all text between the div class="one" tag
What I have so far works, but only if everything is on one line.
text_msg is the
text = re.sub('<div class="one">.*?</div>',new_text,text_msg,re.DOTALL)
<div class="one">replace this
more text here
another line
</div>
I have tried re.MULTILINE, got nowhere. What am I doing wrong?