# mathiasbynens/emoji-regex

A regular expression to match all Emoji-only symbols as per the Unicode Standard.

Repository: https://github.com/mathiasbynens/emoji-regex
Canonical: https://ross.abutalabs.com/products/emoji-regex
Homepage: https://mths.be/emoji-regex
Language: JavaScript
License: MIT
License Family: permissive
Topics: emoji, regex, regexp, regular-expression, unicode
Last push: 2025-10-13T08:13:29+00:00

## Health v2 (maintenance only)
Score: 53/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 46, release rhythm 35, longevity 100
- inputs: {"age_days": 4357, "days_push": 324, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1909, forks 171 (observed 2026-08-28T04:05:53.058721+00:00)

## What it is
emoji-regex is a JavaScript library that provides a regular expression to match all emoji symbols and sequences as per the Unicode Standard. It is generated from Unicode data at build time, making it easy to update whenever new emoji are added to Unicode.

## Use cases
- match all emoji in a string
- find emoji symbols in user input
- replace emoji with images in text
- validate that a string contains only emoji
- count emoji occurrences in text
- strip emoji from text content
- detect emoji sequences including modifiers and ZWJ

## When to choose
- you need a standards-compliant, deterministic emoji matcher tied to a specific Unicode version
- you need to guarantee an image asset exists for every possibly matched emoji
- you want a well-maintained library that tracks new Unicode emoji releases

## When to avoid
- you need a lighter-weight, non-deterministic general emoji pattern (consider emoji-regex-xs instead)
- you need emoji matching in a non-JavaScript language
- you need emoji rendering or image assets, not just matching

## Facets
- artifact type: library
- maturity: stable
- function: parser, nlp, developer-tools
- domain: text-editors, developer-tools
- platform: cross-platform
- tags: emoji, regex, unicode, text-processing, natural-language-processing, nodejs, javascript

## Member repositories
- mathiasbynens/emoji-regex (main) score 53

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:53.058721+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:11:07.399833+00:00, confidence not recorded.
  - readme: https://github.com/mathiasbynens/emoji-regex (fetched 2026-08-28T04:05:53.058721+00:00, sha c00328caf179)
  - homepage: https://mths.be/emoji-regex (fetched 2026-08-29T10:50:28.459285+00:00, sha 15cdce292c50)
  - registry_npm: https://registry.npmjs.org/emoji-regex (fetched 2026-08-29T10:50:28.463132+00:00, sha d06d87077b54)
- Data as of 2026-08-30T08:39:29.467469+00:00.
