mystring = """\
I want this gone!
I wish this would stick around, but I'm greedy!
I want this gone, too!
"""
greedy = re.compile("(.*)", re.MULTILINE|re.DOTALL)
nongreedy = re.compile("(.*?)", re.MULTILINE|re.DOTALL)
# >>> greedy.sub('', mystring)
# '\n\n'
# >>> print nongreedy.sub('', mystring)
# "\n\nI wish this would stick around, but I'm greedy! \n\n"
|