I imaging this is going to be a simple task but I can\'t find what I am looking for exactly in previous StackOverflow questions to here goes...
I have large text fil
If every entry block starts with a colon, you can just split by that:
with open('entries.txt') as fp: contents = fp.read() for entry in contents.split(':'): # do something with entry