target1 = the literal text target1 = (case sensitive) Group target1(?<target1>\w+) \w+any word character, repeated at least once
.*any character (except for line terminators), repeated any number of times
\na line-feed (newline) character (ASCII 10)
target2the literal text target2 (case sensitive) \s+any whitespace character, repeated at least once
Group target2(?<target2>\w+) \w+any word character, repeated at least once
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