(?s)applies the following effective flags to the remainder of the pattern: gs s modifier: single line. Allows a dot to match line terminators
isthe literal text is (case sensitive) \sany whitespace character
mythe literal text my (case sensitive) \sany whitespace character
friend:the literal text friend: (case sensitive) .*any character, repeated any number of times
$end of string, or before its final line terminator
g modifier: global. Finds all matches instead of stopping after the first