Table of Contents
API reference

Method SoundRegex

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

SoundRegex()

[GeneratedRegex("^<sound:(?<guild_id>\\\\d+):(?<sound_id>\\\\d+)>$", RegexOptions.Compiled|RegexOptions.ECMAScript)]
public static Regex SoundRegex()

Returns

Regex

Remarks

Pattern:

^<sound:(?<guild_id>\\\\d+):(?<sound_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 the string "<sound:". ○ "guild_id" capture group. ○ Match '\'. ○ Match 'd' atomically at least once. ○ Match ':'. ○ "sound_id" capture group. ○ Match '\'. ○ Match 'd' atomically at least once. ○ Match '>'. ○ Match if at the end of the string or if before an ending newline.