Skip to content Skip to sidebar Skip to footer

Is There A Specific Range Of Unicode Code Points Which Can Be Checked For Emojis?

Do emojis occupy a well-defined unicode range? And, is there a definitive way to check whether a code point is an emoji in python 2.7? I cannot seem to find any information on this

Solution 1:

regex supports matching by Unicode property, but unfortunately it does not (yet?) support the emoji-specific properties. When it does, finding them will be as simple as:

>>> regex.match(ur'\P{Emoji=yes}', u'🤘') # NOTE: Doesn't (yet) work

In the meantime, here's the emoji table from unicode.org.


Post a Comment for "Is There A Specific Range Of Unicode Code Points Which Can Be Checked For Emojis?"