A regular expression that matches multiple Email addresses separated by semicolons in a string. Hopefully, this can help you save time if you’re acquiring emails to drive a promotion, newsletter, etc.
/(([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)(\s*;\s*|\s*$))*/g
Matches:
Non-matches:
- admin#regexpattern.com
- [email protected], [email protected]
See Also:
- Regular Expression For Email Validation
- Strong Password Regular Expression
- Username Regular Expression
- Regex To Match Comma Separated Emails