Basierend auf den bereitgestellten Kommentaren/Antworten möchte ich klarstellen, dass es keine verschachtelten Tags geben wird.
Code: Select all
text = '''
some text here additional text here The universe really seems to be expanding fast. Too fast, even. A new measurement confirms what previous—and highly debated—results had shown: The universe is expanding faster than predicted by theoretical models, and faster than can be explained by our current understanding of physics.
'''
Irgendwelche Gedanken?
Code: Select all
import re
with open('data.txt', 'r') as f:
text = f.read()
input = re.findall(r".*?", text, re.DOTALL)
for i in input :
print(i)