So I need to remove a few blocks of txt in multiple txt files. The files look like this:
Header
Value
Data
<DefaultValue>
sdf
asdfsdf
asfkfkf
</DefaultValue>
Data3
Data2
<DefaultValue>
sdfdffff
asdfsasdfddf
asfkf
</DefaultValue>**
Dat
End
I need to remove the block of lines that begin with DefaultValue and end with /DefaultValue
The result should look like this:
Header
Value
Data
Data3
Data2
Dat
End
Unfortunately it is not a properly formed XML file so XML node removal won't work.
Any suggestions?