I need to be able to split a string that contains email’s From information. From the string I need to extract $NAME and $EMAIL or whatever is available.
The string can be in the following formats:
"Santa Clause" <santa@example.com>
Santa Clause <santa@example.com>
<santa@example.com>
1 Answer