Last active
August 29, 2015 14:20
-
-
Save triple-j/d96dc8b147cea0965415 to your computer and use it in GitHub Desktop.
Simple Email Name Extract REGEX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/(?:\"?([^\"]*)\"?\s+<?)?([^<>]*)(?:>)?/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given:
"Bob Smith" <[email protected]>
Will output:
Given:
[email protected]
Will output: