For the complete documentation index, see llms.txt. This page is also available as Markdown.

๐Ÿ˜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