๐unicodeEmoji
unicodeEmoji(emoji: string): {
include: boolean,
matchs: RegExpMatchArray | null,
groups: Array<null>
}Search unicode emoji in a string:
const { global } = require('regex-simplify');
const emoji = global.unicodeEmoji(`
๐
test
:u200b:
๐ฎ
`);
console.log(emoji);And here what return the function:
{
include: true,
matchs: [ '๐', '๐ฎ' ],
groups: [ null, null ]
}Last updated