Files
ola5doc/content/.stversions/quentin/sources/poemecanic2~20171217-155007.py
T

12 lines
299 B
Python

def findTheWordsBefore(paragraph):
import re
prose = re.compile(r"(\s\w*\s\w*\s\w*)\sdrill")
List = prose.split(paragraph)
return List
with open("how_2_use_drill.txt", "r" ) as source:
for line in source:
sentences = findTheWordsBefore(line)
for s in sentences:
print s.strip()