On Fri, 12 Jan 2024, AVI GROSS via Python-list wrote:
But is the solution a good one for some purpose? The two output files may end up being out of sync for all kinds of reasons. One of many "errors" can happen if multiple lines in a row do not have an "@" or a person's name does, for example. What if someone supplied more than one email address with a comma separator? This may not be expected but could cause problems.
Avi, For my use 1) the salutation and email address (always with an '@') are sequential and 2) I'm developing the script to extract both from the same file. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list