Why is ♡
a Math char but not an Emoji?
#1117
-
Why is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Because of this line
in DerivedCoreProperties.txt provided by the Unicode consortium.
Becuase
Overall, this is not a question for the regex engine. It's a question for the Unicode consortium. Moreover, I suspect this is an instance of the XY problem. I note that The correct definition of emoji comes from UTS#51. It is a lot more complicated than, "an emoji is a finite set of codepoints." I don't know whether you can use a regex to match emoji or not. The fundamental issue here is that See also: |
Beta Was this translation helpful? Give feedback.
♡
corresponds toU+2661
.Because of this line
in DerivedCoreProperties.txt provided by the Unicode consortium.
Becuase
U+2661
isn't listed as anEmoji
in the emoji data provided by the Unicode consortium. It is listed asExtended_Pictographic
though:Overall, this is not a question for the regex engine. It's a question for the Unicode consortium. Moreover, I suspect this is an instance of the XY problem. I note that
\p{Emoji}
does not match every possible thing that a human thinks of as …