I am stuck. I am trying to get rid of the tag and the whitespace between the tag using a regex.
b="<NAME>
content here
more content
</NAME>
"
result = re.sub("<NAME.*?NAME>", "", b)
If 'b' is all on one line it work. It removes everything between the name tags. But I need it to work with multiple lines as well.