Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Emojiの正規表現

ima1zumi
June 24, 2022
4

 Emojiの正規表現

ima1zumi

June 24, 2022
Tweet

Transcript

  1. ໰୊ • ೖྗϑΥʔϜͰֆจࣈΛೖྗෆՄʹ͍ͨ͠ • e.g. ❤ 🐝 👪 0⃣ •

    ͦͷଞͷจࣈ͸ೖྗՄͱ͢Δ • e.g. 𩸽 (΄͚ͬ) • UTF-8
  2. Unicode จࣈϓϩύςΟ • จࣈͷ࣋ͭଐੑ΍ੑ࣭ΛUnicodeίϯιʔγΞϜ͕ఆΊͨ΋ͷ • Unicode Technical Report #23 THE

    UNICODE CHARACTER PROPERTY MODEL • Unicode® Standard Annex #44 UNICODE CHARACTER DATABASE • https://www.unicode.org/reports/
  3. Emojiؔ࿈ͷϓϩύςΟ • Emoji • Emoji_Presentation • Emoji_Modi fi er •

    Emoji_Modi fi er_Base • Emoji_Component • Extended_Pictographic • Basic_Emoji • RGI_Emoji • RGI_Emoji_Flag_Sequence • RGI_Emoji_Keycap_Sequence • RGI_Emoji_Modi fi er_Sequence • RGI_Emoji_Tag_Sequence • RGI_Emoji_Zwj_Sequence 🆕
  4. p{Emoji}ʹؚ·ΕΔ΋ͷɺؚ·Εͳ͍΋ͷ • 0⃣ ͸ `U+30, U+FE0F, U+20E3` ͷ3ͭͷจࣈ͔Β੒Γཱͭ • keycap

    sequence • U+30 == 0 • 0΋EmojiͷҰ෦ʹͳͬͯ͠·͍ͬͯΔ • #,*,0-9͸஄͖ͨ͘ͳ͍ • U+20E3͸ؚ·Εͳ͍