(?s)applies the following effective flags to the remainder of the pattern: gms s modifier: single line. Allows a dot to match line terminators
<scriptthe literal text <script (case sensitive) \ban ASCII word boundary
Negated Character Class[^>]* *matches any number of characters outside the set below:
>the literal > (6210 / 768 / 3E16)
>the literal > (6210 / 768 / 3E16)
.*?any character, repeated any number of times
</script>the literal text </script> (case sensitive) (*SKIP)acts like (*PRUNE), but the next unanchored match attempt starts where (*SKIP) was reached instead of at the next subject character
(*F)forces the current match attempt to fail at this position