Is there a specific range of unicode code points which can be checked for emojis?

前端 未结 1 1751
执念已碎
执念已碎 2021-01-17 21:15

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

1条回答
  •  抹茶落季
    2021-01-17 21:42

    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'

    0 讨论(0)
提交回复
热议问题