# unicodeEmoji

{% tabs %}
{% tab title="Function types" %}

<pre class="language-typescript"><code class="lang-typescript"><strong>unicodeEmoji(emoji: string): { 
</strong>    include: boolean, 
    matchs: RegExpMatchArray | null, 
    groups: Array&#x3C;null>
}
</code></pre>

{% endtab %}

{% tab title="Code example" %}
**Search unicode emoji in a string:**

```javascript
const { global } = require('regex-simplify');

const emoji = global.unicodeEmoji(`
    😁
    test
    :u200b:
    🌮
`);

console.log(emoji);
```

{% endtab %}

{% tab title="Function return" %}
**And here what return the function:**

```javascript
{ 
    include: true, 
    matchs: [ '😁', '🌮' ], 
    groups: [ null, null ] 
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://regex-simplify.lacostar.fr/docs/global/unicodeemoji.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
