I would like to parse a mailer to-string which could consist of the following examples separated with a comma (,):
First name <[email protected]>
"first name" <[email protected]>
<[email protected]>
[email protected]
I would like to make an array with an entry for each element with two sub-entries: [name] and [email].
I've been struggling with the regexp for (what looks like) ages. Could someone help me?