Skip to content

n4ze3m/remove-emoji

Repository files navigation

Remove Emoji 😢

Dart package accurately replace/remove emojis in text. Remove-emoji heavily inspired by NodeJS package emoji-regex.

Usage

A simple usage example:

import 'package:remove_emoji/remove_emoji.dart';

void main() {
  var word = '🤣h😌e🙄l😪l😓o😳🤔👨‍🦰🤶🏿 🧝‍♂️🍝🥘🌯🍦🥂🥂🎂🍰🧁🍨🍧😁w🤷‍♂️o😎r🤪l🤦‍♂️d🐸🤑😆😖🎉🍾🤟🤩😢🐭😡😍📧😄😔😇🧐😈🙁🤓🙂🥱';
  var remove = RemoveEmoji();

  //  with trim
  print(remove.clean(word));

  // without trim
  print(remove.clean(word,'', false));

  // or use extension 🤓

  // with trim
  print(word.removEmoji);
 // without trim
 print(word.removEmojiNoTrim);
}

output

hello world
hello world

Contribution

Happy 😍 to recieve or provide contributions related to this package.

Features and bugs

Please file feature requests and bugs at the issue tracker.

About

Dart or flutter package accurately replace/remove emojis in text

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages