Definition Group(?(DEFINE)
(?<section>^\[Section\ \d+\])
) Group section(?<section>^\[Section\ \d+\]) ^start of line
\[the literal [ (9110 / 1338 / 5B16)
Sectionthe literal text Section (case sensitive) \ the literal (3210 / 408 / 2016)
\d+a digit, repeated at least once
\]the literal ] (9310 / 1358 / 5D16)
(?§ion)calls group section as a subroutine
Non-Capturing Group(?:(?!(?§ion))[\s\S])* *repeats the group contents below any number of times:
Negative Lookahead(?!(?§ion)) (?§ion)calls group section as a subroutine
\sany whitespace character
\Sany non-whitespace character
^start of line
\s*any whitespace character, repeated any number of times
namethe literal text name (case sensitive) \s*any whitespace character, repeated any number of times
=the literal = (6110 / 758 / 3D16)
\s*any whitespace character, repeated any number of times
\Kresets the starting point of the reported match. Any previously consumed characters are no longer included in the final match
.+any character (except for line terminators), repeated at least once
$end of line
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
x modifier: extended. Ignores unescaped whitespace and comments outside character classes