How do I match an emoji with regex?

In: Emojis for Developers

Use the Unicode property \p{Emoji} — supported in JavaScript (with the u flag), Python (with the regex module), Ruby and PHP. Example in JS: /\p{Emoji}/gu.test("🎉"). For strict matching including ZWJ sequences, libraries like emoji-regex are the easiest route.

Read about How do I match an emoji with regex? in