^start of line
.*any character (except for line terminators), repeated any number of times
{the literal { (12310 / 1738 / 7B16)
Non-Capturing Group(?:\r?\n(?!.*#(?:f518e2|22f1e6)\b).*)* *repeats the group contents below any number of times:
\r?optionally matches a carriage return (ASCII 13)
\na line-feed (newline) character (ASCII 10)
Negative Lookahead(?!.*#(?:f518e2|22f1e6)\b) .*any character (except for line terminators), repeated any number of times
#the literal # (3510 / 438 / 2316)
Non-Capturing Group(?:f518e2|22f1e6) f518e2the literal text f518e2 (case sensitive) 22f1e6the literal text 22f1e6 (case sensitive) \ban ASCII word boundary
.*any character (except for line terminators), repeated any number of times
\r?optionally matches a carriage return (ASCII 13)
\na line-feed (newline) character (ASCII 10)
}the literal } (12510 / 1758 / 7D16)
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