Code: Select all
MsgBox % RegExReplace("🐴に한", "[\x{dddd}-\x{ffff}]" , "horse") ; emoji
; expected: horseに한
Code: Select all
MsgBox % RegExReplace("🐴に한", "[\x{dddd}-\x{ffff}]" , "horse") ; emoji
; expected: horseに한
Code: Select all
emojiList := {horse: "🐴"}
str = 🐴に한
For text, emoji in emojiList
str := RegExReplace(str, emoji, text)
MsgBox, 64, Result, %str%
Code: Select all
MsgBox % RegExReplace("🐴に한", "\x{1F434}" , "horse") ; U+1F434 code for this horse
;or
MsgBox % RegExReplace("🐴に한", chr(128052) , "horse")
Code: Select all
emojiList := {"couple with heart: woman, woman, dark skin tone": "👩🏿❤️👩🏿"}