(?s)applies the following effective flags to the remainder of the pattern: s s modifier: single line. Allows a dot to match line terminators
<spanthe literal text <span (case sensitive) Negated Character Class[^>]* *matches any number of characters outside the set below:
>the literal > (6210 / 768 / 3E16)
>the literal > (6210 / 768 / 3E16)
\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
.any character
Positive Lookahead(?=<\/span>) <the literal < (6010 / 748 / 3C16)
\/the literal / (4710 / 578 / 2F16)
span>the literal text span> (case sensitive)