Tuesday, April 10, 2012 Extracting Names and Email Addresses from a String A common way for users to enter multiple email addresses is in a format like this: emails = "first last <email1@example.com>, email2@example.co.uk, Name <email3@example.com>, <email4@example.com>" One way to parse it is using a regex to identify all email addresses in the string. This will not validate the format, and it