structurethe literal text structure (case sensitive) \s+any whitespace character, repeated at least once
+matches at least one character from the set below:
\wany word character
.the literal . (4610 / 568 / 2E16)
-the literal - (4510 / 558 / 2D16)
\s*any whitespace character, repeated any number of times
Group 2((?:(?!end\s+\1)[\s\S])*) Non-Capturing Group(?:(?!end\s+\1)[\s\S])* *repeats the group contents below any number of times:
Negative Lookahead(?!end\s+\1) endthe literal text end (case sensitive) \s+any whitespace character, repeated at least once
\1the text saved by group 1
\sany whitespace character
\Sany non-whitespace character
endthe literal text end (case sensitive) \s+any whitespace character, repeated at least once
\1the text saved by group 1
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