(?m)applies the following effective flags to the remainder of the pattern: mg m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string
Group type(?<type>@param) @paramthe literal text @param (case sensitive) *the literal (3210 / 408 / 2016) , 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
Group scalar(?<scalar>(?![\$])\S+)? ?repeats the group contents below at most once:
Negative Lookahead(?![\$]) \$the literal $ (3610 / 448 / 2416)
\S+any non-whitespace character, repeated at least once
*the literal (3210 / 408 / 2016) , 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
\$the literal $ (3610 / 448 / 2416)
\S+any non-whitespace character, repeated at least once
*the literal (3210 / 408 / 2016) , 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
Group message(?<message>\S+.*\S+) \S+any non-whitespace character, repeated at least once
.*any character (except for line terminators), repeated any number of times
\S+any non-whitespace character, repeated at least once
m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string
g modifier: global. Finds all matches instead of stopping after the first