Table of Contents
API reference

Method EmojiRegex

Namespace
DisCatSharp.Common.RegularExpressions
Assembly
DisCatSharp.Common.dll

EmojiRegex()

[GeneratedRegex("^<(?<animated>a)?:(?<name>[a-zA-Z0-9_]+?):(?<id>\\d+?)>$", RegexOptions.Compiled|RegexOptions.ECMAScript)]
public static Regex EmojiRegex()

Returns

Regex

Remarks

Pattern:

^<(?<animated>a)?:(?<name>[a-zA-Z0-9_]+?):(?<id>\\d+?)>$

Options:<br />
<pre><code class="lang-csharp">RegexOptions.Compiled | RegexOptions.ECMAScript</code></pre><br />
Explanation:<br />
<pre><code class="lang-csharp">○ Match if at the beginning of the string.

○ Match '<'. ○ Optional (greedy). ○ "animated" capture group. ○ Match 'a'. ○ Match ':'. ○ "name" capture group. ○ Match a character in the set [0-9A-Z_a-z] atomically at least once. ○ Match ':'. ○ "id" capture group. ○ Match a character in the set [0-9] atomically at least once. ○ Match '>'. ○ Match if at the end of the string or if before an ending newline.