I'm reading a list of email addresses from a config file. The addresses can be delimited by comma or semicolon - e.g.,
[email protected],[email protected], [email protected]
[email protected];[email protected]; [email protected]
I'd like to get rid of any whitespace around the email addresses too.
I need to get them into a Python list like this:
['[email protected]', '[email protected]', '[email protected]']
What's the most Pythonic way to do it? Thanks.