i want to replace all emoji in string with icon now i successfully replaced those {:) :D :P :3 <3 XP .... etc}
to icon so if user write :)
this on string its will replace with an icon but i got an problem what if user paste direct the unicode ?? that's equal to :)
so what i need its
how can i change unicode icon to javascript regular expressions something like ud800-udbff
i have many emoji so i want the idea about convert them and after convert them i want to match them with regular expressions
ex : ??wew??
change those emoji to
uD83DuDE01|uD83DuDE4F|
i don't know how to change them so i need to know how to change any emoji to those character
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…