EmojiMint

Free emoji tool

Emoji Regex Generator

Generate regex patterns and sample JavaScript for emoji detection.

Unicode emoji matching is complex because of skin tones, variation selectors, flags, and zero-width joiner sequences. Treat these snippets as practical starting points and test your target platforms.

JavaScript regex and sample code
const emojiRegex = /(?:\p{Regional_Indicator}{2}|\p{Extended_Pictographic}(?:\uFE0F)?)/gu;
const matches = text.match(emojiRegex) ?? [];

About the Emoji Regex Generator

Get practical JavaScript regex snippets for matching, extracting, removing, and detecting emoji characters, with a Unicode complexity warning.

Example outputs

/\p{Extended_Pictographic}/gu
text.match(regex)
text.replace(regex, '')

How to use

  1. Choose a regex goal.
  2. Review the generated regex and code.
  3. Copy the sample into your project.

Example use cases

  • Prototype emoji detection.
  • Clean user input.
  • Extract emoji lists from text.

Related tools

Keep working with nearby EmojiMint tools.

FAQs

Yes. EmojiMint tools are free and work without an account.