npm.io
1.1.1 • Published 8 months ago

emails-regex

Licence
MIT
Version
1.1.1
Deps
0
Size
4 kB
Vulns
0
Weekly
0

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

Keywords