(?s)applies the following effective flags to the remainder of the pattern: s s modifier: single line. Allows a dot to match line terminators
^start of string
.*?any character, repeated any number of times
regexthe literal text regex (case sensitive) \Kresets the starting point of the reported match. Any previously consumed characters are no longer included in the final match
.*any character, repeated any number of times