API reference
Method MdStripRegex
- Namespace
- DisCatSharp.Common.RegularExpressions
- Assembly
- DisCatSharp.Common.dll
MdStripRegex()
[GeneratedRegex("([`\\*_~\\[\\]\\(\\)\"\\|]|<@\\!?\\d+>|<#\\d+>|<@\\&\\d+>|<:[a-zA-Z0-9_\\-]:\\d+>|#{1,3} |> |>>> |\\* )", RegexOptions.Compiled|RegexOptions.ECMAScript)]
public static Regex MdStripRegex()
Returns
Remarks
Pattern:
([`\\*_~\\[\\]\\(\\)"\\|]|<@\\!?\\d+>|<#\\d+>|<@\\&\\d+>|<:[a-zA-Z0-9_\\-]:\\d+>|#{1,3} |> |>>> |\\* )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 with 9 alternative expressions, atomically.
○ Match a character in the set ["(-*[]_`|~].
○ Match a sequence of expressions.
○ Match the string "<@".
○ Match '!' atomically, optionally.
○ Match a character in the set [0-9] atomically at least once.
○ Match '>'.
○ Match a sequence of expressions.
○ Match the string "<#".
○ Match a character in the set [0-9] atomically at least once.
○ Match '>'.
○ Match a sequence of expressions.
○ Match the string "<@&".
○ Match a character in the set [0-9] atomically at least once.
○ Match '>'.
○ Match a sequence of expressions.
○ Match the string "<:".
○ Match a character in the set [-0-9A-Z_a-z].
○ Match ':'.
○ Match a character in the set [0-9] atomically at least once.
○ Match '>'.
○ Match a sequence of expressions.
○ Match '#' atomically at least 1 and at most 3 times.
○ Match ' '.
○ Match the string "> ".
○ Match the string ">>> ".
○ Match the string "* ".</code></pre>