I need to extract emojis from a string for this side project I am working on in Flutter
Input: "Hey everyone "
Output: ""
How do I achieve this?
This is what I have tried so far based on this post
var emojiRegex = RegExp(
"r'(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])'");
getEmojis(String message) {
print("EXTRACTING EMOJI");
var output = message.replaceAll(emojiRegex,"");
print("EMOJI: $output");
}