emojibase-regex
TypeScript icon, indicating that this package has built-in type declarations

15.3.0 • Public • Published

Emojibase Regex

Build Status npm version npm deps

Install the package.

yarn add emojibase-regex

Import and use the RegExp pattern.

import EMOJI_REGEX from 'emojibase-regex';
import EMOTICON_REGEX from 'emojibase-regex/emoticon';
import SHORTCODE_REGEX from 'emojibase-regex/shortcode';
import SHORTCODE_NATIVE_REGEX from 'emojibase-regex/shortcode-native';

`🏰`.match(EMOJI_REGEX);
':)'.match(EMOTICON_REGEX);
':castle:'.match(SHORTCODE_REGEX);
':гвинея:'.match(SHORTCODE_NATIVE_REGEX);

Documentation

https://emojibase.dev/docs/regex

Package Sidebar

Install

npm i emojibase-regex

Weekly Downloads

174,315

Version

15.3.0

License

MIT

Unpacked Size

168 kB

Total Files

37

Last publish

Collaborators

  • milesj