All Projects → gajus → extract-email-address

gajus / extract-email-address

Licence: other
Extracts email address from an arbitrary text input.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to extract-email-address

pcre-net
PCRE.NET - Perl Compatible Regular Expressions for .NET
Stars: ✭ 114 (+153.33%)
Mutual labels:  regex, extract
Sammler
A tool to extract useful data from documents
Stars: ✭ 131 (+191.11%)
Mutual labels:  regex, extract
Chr
🔤 Lightweight R package for manipulating [string] characters
Stars: ✭ 18 (-60%)
Mutual labels:  regex, extract
Xioc
Extract indicators of compromise from text, including "escaped" ones.
Stars: ✭ 148 (+228.89%)
Mutual labels:  regex, extract
Zile
Extract API keys from file or url using by magic of python and regex.
Stars: ✭ 61 (+35.56%)
Mutual labels:  regex, extract
CVparser
CVparser is software for parsing or extracting data out of CV/resumes.
Stars: ✭ 28 (-37.78%)
Mutual labels:  regex, extract
MAQS
Magenic's automation quick start
Stars: ✭ 46 (+2.22%)
Mutual labels:  email
hex-color-regex
Regular expression for matching hex color values from string.
Stars: ✭ 29 (-35.56%)
Mutual labels:  regex
crystular
Crystal regex tester http://www.crystular.org/
Stars: ✭ 31 (-31.11%)
Mutual labels:  regex
dispatch
A self-hosted mail forwarding API microservice
Stars: ✭ 24 (-46.67%)
Mutual labels:  email
alfred-mailto
Send emails to recipients and groups from Alfred
Stars: ✭ 59 (+31.11%)
Mutual labels:  email
carbon
Email library for Crystal. Testable, adapter-based, and catches bugs for you. Comes with an adapter for SendGrid.
Stars: ✭ 71 (+57.78%)
Mutual labels:  email
regex
A set of ready-made regex helper methods for use in your Laravel application.
Stars: ✭ 226 (+402.22%)
Mutual labels:  regex
VennDetail
VennDetail: a bioconductor package for VennDiagram visualization and details extraction
Stars: ✭ 14 (-68.89%)
Mutual labels:  extract
strapi-plugin-email-designer
Design your own email templates w/ visual composer directly inside the Strapi admin panel and send composed emails programmatically from your controllers / services.
Stars: ✭ 201 (+346.67%)
Mutual labels:  email
go-html-email
Sending HTML email using Go 💌
Stars: ✭ 31 (-31.11%)
Mutual labels:  email
muil
Muil is a framework to build, maintain and manage dynamic templates using React and tools you know and love
Stars: ✭ 26 (-42.22%)
Mutual labels:  email
wp-mail-catcher
A fast, lightweight plugin that saves emails sent by your WordPress website.
Stars: ✭ 16 (-64.44%)
Mutual labels:  email
checkdmarc
A parser for SPF and DMARC DNS records
Stars: ✭ 124 (+175.56%)
Mutual labels:  email
String.prototype.matchAll
Spec-compliant polyfill for String.prototype.matchAll, in ES2020
Stars: ✭ 14 (-68.89%)
Mutual labels:  regex

extract-email-address 📧

Travis build status Coveralls NPM version Canonical Code Style Twitter Follow

Extracts email address from an arbitrary text input.

API

import extractEmail from 'extract-email-address';
import type {
  EmailMatchType,
} from 'extract-email-address';

extractEmail(input: string): $ReadOnlyArray<EmailMatchType>;

Usage

import extractEmail from 'extract-email-address';

extractEmail('extracts email from anywhere within the input [email protected]');
// [{email: '[email protected]'}]

extractEmail('extracts multiple emails located anywhere within the input: [email protected], [email protected]');
// [{email: '[email protected]'}, {email: '[email protected]'}]

extractEmail('extracts all sorts of obfuscated emails, e.g. f o o @ b a r . c o m or baz [at] qux [dot] com');
// [{email: '[email protected]'}, {email: '[email protected]'}]

extractEmail('extracts tagged emails, e.g. [email protected]');
// [{email: '[email protected]'}]

extractEmail('extracts emails surrounded by odd unicode characters, e.g. 邮箱:[email protected]');
// [{email: '[email protected]'}]

extractEmail('extracts emails surrounded by emojis, e.g. 📧[email protected]');
// [{email: '[email protected]'}]

extractEmail('excludes invalid emails with invalid TLDs, e.g. [email protected]');
// []

extractEmail('ignores invalid emails foo@bar');
// []

Filtering results

Some matches might be syntactically valid email addresses, but not actual email addresses, e.g. [email protected].

extract-email-address uses a list of valid top-level domains to filter out matches that are definitely not emails (such as png example), but you might still need to filter out domain specific false-positives.

Related projects

  • extract-date – Extracts date from an arbitrary text input.
  • extract-price – Extracts price from an arbitrary text input.
  • extract-time – Extracts time from an arbitrary text input.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].