Python 2.5.2: remove what found between two lines that contain two concrete strings
- by user248959
Hi,
is there any way to remove what found between two lines that contain two concrete strings?
I mean: I want to remove anything found between 'heaven' and 'hell' in a text file with this text:
I'm in heaven
foobar
I'm in hell
After executing the script/function i'm asking the text file will be empty.
Regards
Javi