def GetTheSentences(infile):
    with open(infile) as fp:
        for result in re.findall('DELIMITER1(.*?)DELIMITER2', fp.read(), re.S):
            pass
Repeatedly extract a line between two delimiters in a text file, Python