remove_emoji 0.0.10 remove_emoji: ^0.0.10 copied to clipboard
Dart and flutter package accurately replace/remove emojis in text
example/remove_emoji_example.dart
import 'package:remove_emoji/remove_emoji.dart';
void main() {
var remove = RemoveEmoji();
print(remove.clean(
'๐คฃh๐e๐l๐ชl๐o๐ณ๐ค๐จโ๐ฆฐ๐คถ๐ฟ ๐งโโ๏ธ๐๐ฅ๐ฏ๐ฆ๐ฅ๐ฅ๐๐ฐ๐ง๐จ๐ง๐w๐คทโโ๏ธo๐r๐คชl๐คฆโโ๏ธd๐ธ๐ค๐๐๐๐พ๐ค๐คฉ๐ข๐ญ๐ก๐๐ง๐๐๐๐ง๐๐๐ค๐๐ฅฑ'));
// or
print(
'๐คฃh๐e๐l๐ชl๐o๐ณ๐ค๐จโ๐ฆฐ๐คถ๐ฟ ๐งโโ๏ธ๐๐ฅ๐ฏ๐ฆ๐ฅ๐ฅ๐๐ฐ๐ง๐จ๐ง๐w๐คทโโ๏ธo๐r๐คชl๐คฆโโ๏ธd๐ธ๐ค๐๐๐๐พ๐ค๐คฉ๐ข๐ญ๐ก๐๐ง๐๐๐๐ง๐๐๐ค๐๐ฅฑ'
.removEmoji);
// other language
print('5 rue des รฉcoles. la quantinรฉ 75000 Paris๐คฃ๐ฅ'.removEmojiNoTrim);
// chinese characters
print('ไฝ ๅฅฝ๐ไธ็๐ฌ๐ซ๐จโโ๐จ'.removEmoji);
// japanese characters
print('ใใใซ๐ใกใฏไธ็๐ฌ๐ซ๐จโโ๐จ'.removEmoji);
// arabic characters
print('ู
ุฑุญุจุง ุจุง๐๐ูุนุงูู
๐ฌ๐ซ๐จโโ๐จ'.removEmoji);
// russian characters
print('ะัะธ๐๐ะฒะตั ะผะธั๐ฌ๐ซ๐จโโ๐จ'.removEmoji);
// malayalam characters
print('เดน๐๐เดฒเตเดพ เดฒเตเดพเดเด๐ฌ๐ซ๐จโโ๐จ'.removEmoji);
// hindi characters
print('เคจเคฎเคธเฅเคคเฅ เคฆเฅเคจเคฟ๐๐เคฏเคพ๐ฌ๐ซ๐จโโ๐จ'.removEmoji);
// ukranian characters
print('ะั๐๐ะธะฒัั ัะฒัั๐ฌ๐ซ๐จโโ๐จ'.removEmoji);
// spanish characters
print('Hola M๐๐undo๐ฌ๐ซ๐จโโ๐จ'.removEmoji);
// tamil characters
print('เฎน๐๐เฎฒเฏเฎพ เฎเฎฒเฎเฎฎเฏ๐ฌ๐ซ๐จโโ๐จ'.removEmoji);
// vietnamese characters
print('Xin chร o thแบฟ giแปi๐ฌ๐ซ๐จโโ๐จ'.removEmoji);
// thai characters
print('เธช๐๐เธงเธฑเธชเธเธตเธเธฒเธงเนเธฅเธ๐ฌ๐ซ๐จโโ๐จ'.removEmoji);
// korean characters
print('์๐๐๋
ํ์ธ์ ์ธ๊ณ๐ฌ๐ซ๐จโโ๐จ'.removEmoji);
// flags
print('๐ฉ๐ฒtest'.removEmoji);
// get the regex string
print(remove.getRegexString());
}