Quantcast
Channel: How to delete/detect any emoji as a whole from a string in Flutter? - Stack Overflow
Viewing all articles
Browse latest Browse all 9

Answer by Demaro Create for How to delete/detect any emoji as a whole from a string in Flutter?

$
0
0
With RegExp and replaceAll: final regex = RegExp("(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-  \udfff]|\ud83e[\ud000-\udfff])"); final textReplace = String.replaceAll(regex, '');

Viewing all articles
Browse latest Browse all 9

Trending Articles