Hello, First I'm not so clear about your problem, but you can do the following steps:
1. Transform your file into list (list1) 2. Use regex to capture 'robert' in every member of list1 and add to list2 3. Transform your list2 into a file pujo -- http://mail.python.org/mailman/listinfo/python-list