find-emails-in-string

Takes a string containing email addresses and returns array of emails in original string

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
find-emails-in-string
1.0.15 years ago6 years agoMinified + gzip package size for find-emails-in-string in KB

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@example.com.");
// => ["email@example.com"]

findEmails("Sentence with multiple@example.com and another@example.com.");
// => ["multiple@example.com", "another@example.com"]

Support

Find this package useful? Support it on GitHugz!