*repeats the group contents below any number of times:
Comment: comments with any indentation
Non-Capturing Group(?:
\s*?
\n [ \t]* [#].*
)* *repeats the group contents below any number of times:
\s*?any whitespace character, repeated any number of times
\na line-feed (newline) character (ASCII 10)
*matches any number of characters from the set below:
the literal (3210 / 408 / 2016)
\ta tab character (ASCII 9)
#the literal # (3510 / 438 / 2316)
.*any character (except for line terminators), repeated any number of times
Comment: Optional elif/else lines
Non-Capturing Group(?:
\s*?
\n\1 el(?:se|if)\b .* $
)? ?repeats the group contents below at most once:
\s*?any whitespace character, repeated any number of times
\na line-feed (newline) character (ASCII 10)
\1the text saved by group 1
elthe literal text el (case sensitive) Non-Capturing Group(?:se|if) sethe literal text se (case sensitive) ifthe literal text if (case sensitive) \ban ASCII word boundary
.*any character (except for line terminators), repeated any number of times
$end of line
Comment: following lines with more indentation
\s*?any whitespace character, repeated any number of times
\na line-feed (newline) character (ASCII 10)
\1the text saved by group 1
the literal (3210 / 408 / 2016)
\ta tab character (ASCII 9)
.*any character (except for line terminators), repeated any number of times