Table of Contents

Method GetChannelMatchingRegex

Namespace
DSharpPlus.Commands.Converters
Assembly
DSharpPlus.Commands.dll

GetChannelMatchingRegex()

[GeneratedRegex("^<#(\\d+)>$", RegexOptions.Compiled|RegexOptions.ECMAScript)]
public static Regex GetChannelMatchingRegex()

Returns

Regex

Remarks

Pattern:

^<#(\d+)>$

Options:
RegexOptions.Compiled | RegexOptions.ECMAScript

Explanation:
○ Match if at the beginning of the string.
○ Match the string "<#".
○ 1st 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.