find-emails-in-string
v1.0.1
Published
Takes a string containing email addresses and returns array of emails in original string
Downloads
706
Maintainers
Readme
find-emails-in-string
Package for finding emails in strings or sentences.
- Returns array of valid emails.
- Validates each email according to RFC 5322 guidelines. See RFC 2822 for specific technical details.
Installation
npm install find-emails-in-string --save
Usage
var findEmails = require('find-emails-in-string');
findEmails("Sentence with [email protected].");
// => ["[email protected]"]
findEmails("Sentence with [email protected] and [email protected].");
// => ["[email protected]", "[email protected]"]
Support
Find this package useful? Support it on GitHugz!