This is a working filter email address and a name in python program. Codes are given in comments as well as regex pattern.
This is fully working filter of email address and a name using python program. Codes are given in regex and provide patterns that suite your needs.