je přesně text na řádky a udržet deliminaters python
raw_lines = re.split('(?<=!)|(?<=\.)|(?<=\?)', text)
python rozdělit řetězec oddělovač udržet
line = "<html><head>"
d = ">"
s = [e+d for e in line.split(d) if e]
print(s)
#Output:
#["<html>", "<head>"]