emails-regex

1.1.0 • Public • Published

emails-regex Build Status npm

Emails Regex Pattern returns a regex that matches Emails.

Use it for picking up Emails's from text.

Install

$ npm install emails-regex

Usage

const emailsRegex = require('emails-regex');
 
// Contains a emails
'Contact us at support@generic.com'.match(emailsRegex());
// => ['support@generic.com']
 
'The founding team members are ravi@abc.in & kishan@abc.in'.match(emailsRegex());
// => ['ravi@abc.com', kishan@abc.com]
 
//Doesn't contain emails
'Contact us at support@generic'.match(emailsRegex());
// => []

See Also

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    3
  • 1.0.0
    0

Package Sidebar

Install

npm i emails-regex

Weekly Downloads

3

Version

1.1.0

License

MIT

Unpacked Size

13.6 kB

Total Files

8

Last publish

Collaborators

  • rajeevdesai