Use regular expressions:
import re
pattern = re.compile("> >.+<br")
print pattern.findall(string)
# --------------------------------text----------------------
2
solved Python module import error [closed]
Use regular expressions:
import re
pattern = re.compile("> >.+<br")
print pattern.findall(string)
# --------------------------------text----------------------
2
solved Python module import error [closed]