#Validate unicode emoji

4 messages · Page 1 of 1 (latest)

lean garden

I want to check whether a user input is a unicode emoji. How can I do this?
In Python there is a package but what about JS?
PS: The Regex /^(\p{Emoji})$/u doesn't work for all emojis.

jolly fiberBOT
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
  • Marked as resolved by OP
solid pineBOT
  • For unicode emojis (twemoji): learn more
  • Custom emojis: /<?(a)?:?(\w{2,32}):(\d{17,19})>?/ learn more
lean garden

Jeez that's a big ass regex 😂