import re
str = """useless stuff
fruit: apple
fruit: banana
useless stuff
fruit: kiwi
fruit: orange
fruit: pear"""
print re.findall(r'fruit: ([\w]+)\n|[^\n]*\n', str, re.M);
aW1wb3J0IHJlCnN0ciA9ICIiInVzZWxlc3Mgc3R1ZmYKIApmcnVpdDogYXBwbGUKZnJ1aXQ6IGJhbmFuYQogCnVzZWxlc3Mgc3R1ZmYKIApmcnVpdDoga2l3aQpmcnVpdDogb3JhbmdlCmZydWl0OiBwZWFyIiIiCnByaW50IHJlLmZpbmRhbGwocidmcnVpdDogKFtcd10rKVxufFteXG5dKlxuJywgc3RyLCByZS5NKTs=