import re FILE_PATH = 'l3-text' f = open(FILE_PATH) text = ''.join(f.readlines()) print ''.join([ l[4] for l in re.findall('[a-z][A-Z]{3}[a-z][A-Z]{3}[a-z]', text) ]) f.close()
0 comments:
Post a Comment