fork download
  1. import re
  2.  
  3. pattern = r"\b\d{1,3}\. .*?(?=\b\d{1,3}\. |$)"
  4. s = "134. Lorem Ipsum is simply dummy text of the printing and typesetting industry 135. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book 136. It has survived not only five centuries"
  5.  
  6. print(re.findall(pattern, s))
Success #stdin #stdout 0.03s 9532KB
stdin
Standard input is empty
stdout
['134. Lorem Ipsum is simply dummy text of the printing and typesetting industry ', "135. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book ", '136. It has survived not only five centuries']