commited all contents created by participants
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
def findTheWordsBefore(paragraph):
|
||||
import re
|
||||
|
||||
prose = re.compile(r"(\s\w*\s\w*\s\w*\s)+drill")
|
||||
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()
|
||||
Reference in New Issue
Block a user