Table of Contents
API reference

Method MdSanitizeRegex

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

MdSanitizeRegex()

[GeneratedRegex("([`\\*_~<>\\[\\]\\(\\)\"@\\!\\&#:\\|])", RegexOptions.Compiled|RegexOptions.ECMAScript)]
public static Regex MdSanitizeRegex()

Returns

Regex

Remarks

Pattern:

([`\\*_~<>\\[\\]\\(\\)"@\\!\\&#:\\|])

Options:<br />
<pre><code class="lang-csharp">RegexOptions.Compiled | RegexOptions.ECMAScript</code></pre><br />
Explanation:<br />
<pre><code class="lang-csharp">○ 1st capture group.
○ Match a character in the set [!-#&(-*:<>@[]_`|~].</code></pre>