\?{3}the literal ? (6310 / 778 / 3F16) , repeated exactly 3 times
\s*any whitespace character, repeated any number of times
.+any character (except for line terminators), repeated at least once
\s*any whitespace character, repeated any number of times
Group 2((?:(?!-{3} admonition)[\s\S])*?) Non-Capturing Group(?:(?!-{3} admonition)[\s\S])*? *?repeats the group contents below any number of times:
Negative Lookahead(?!-{3} admonition) -{3}the literal - (4510 / 558 / 2D16) , repeated exactly 3 times
admonitionthe literal text admonition (case sensitive) \sany whitespace character
\Sany non-whitespace character
\s*any whitespace character, repeated any number of times
-{3}the literal - (4510 / 558 / 2D16) , repeated exactly 3 times
admonitionthe literal text admonition (case sensitive) g modifier: global. Finds all matches instead of stopping after the first
m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string