^start of line
1the literal 1 (4910 / 618 / 3116)
.*any character (except for line terminators), repeated any number of times
\na line-feed (newline) character (ASCII 10)
^start of line
2the literal 2 (5010 / 628 / 3216)
.*any character (except for line terminators), repeated any number of times
\na line-feed (newline) character (ASCII 10)
^start of line
3the literal 3 (5110 / 638 / 3316)
.*any character (except for line terminators), repeated any number of times
\na line-feed (newline) character (ASCII 10)
^start of line
4the literal 4 (5210 / 648 / 3416)
.*any character (except for line terminators), repeated any number of times
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