I need to get a specific piece of a .txt file that is between <tag>
and </tag>
.
But I need to get all the lines where it happens.
Example:
<tag1>titulo</tag1>
<tag2>subtitulo</tag2>
texto...
<tag2>subtitulo</tag2>
texto...
<tag1>titulo</tag1>
<tag2>subtitulo</tag2>
texto...
I want to get the text between these tags and save.