Table of Contents
API reference

Method AnimatedEmojiRegex

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

AnimatedEmojiRegex()

[GeneratedRegex("^<(?<animated>a):(?<name>\\w{2,32}):(?<id>\\d{17,20})>$", RegexOptions.Compiled|RegexOptions.ECMAScript)]
public static Regex AnimatedEmojiRegex()

Returns

Regex

Remarks

Pattern:

^<(?<animated>a):(?<name>\\w{2,32}):(?<id>\\d{17,20})>$

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 '<'. ○ "animated" capture group. ○ Match 'a'. ○ Match ':'. ○ "name" capture group. ○ Match a word character (ECMA) atomically at least 2 and at most 32 times. ○ Match ':'. ○ "id" capture group. ○ Match a character in the set [0-9] atomically at least 17 and at most 20 times. ○ Match '>'. ○ Match if at the end of the string or if before an ending newline.