^start of string
.*any character, 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 text <!-- .+?any character, repeated at least once
stylesheetthe literal text stylesheet (case sensitive) .+?any character, repeated at least once
s modifier: single line. Allows a dot to match line terminators