A regular expression to match all emoji symbols and sequences as per the Unicode Standard.
emoji-regex is a JavaScript library that provides a regular expression to match all emoji symbols and sequences as per the Unicode Standard. It solves the problem of accurately identifying emoji in text, including complex sequences like modifiers and variations. The regex is generated from the latest Unicode data, ensuring it stays current with new emoji releases.
Developers working with text processing, validation, or rendering in JavaScript/Node.js environments who need reliable emoji detection.
It offers a deterministic, Unicode-compliant solution that is regularly updated, making it more reliable than handcrafted regex patterns for emoji matching in production applications.
A regular expression to match all Emoji-only symbols as per the Unicode Standard.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Matches all emoji symbols and sequences as defined by the Unicode Standard, generated directly from Unicode data to ensure accuracy in production.
Each release is tied to a specific Unicode version, guaranteeing consistent results crucial for use cases like image replacement where assets must align with matches.
Automatically updates via its build-time pattern generator when new emoji are added, reducing manual effort compared to handcrafted regex solutions.
Exports a function returning the regex to prevent accidental mutation of the global flag, enhancing reliability in shared Node.js modules.
Relies on manual maintainer updates for new Unicode releases, which can delay support for the latest emojis until a new package version is published.
The regex is comprehensive and large, potentially slowing down matching in high-volume text processing compared to lighter, custom patterns.
For front-end applications, importing the full regex can increase bundle size, affecting load times if not tree-shaken or used sparingly.