<scriptthe literal text <script (case insensitive) \ban ASCII word boundary
Negated Character Class[^<]* *matches any number of characters outside the set below:
<the literal < (6010 / 748 / 3C16)
Non-Capturing Group(?:(?!<\/script>)<[^<]*)* *repeats the group contents below any number of times:
Negative Lookahead(?!<\/script>) <the literal < (6010 / 748 / 3C16)
\/the literal / (4710 / 578 / 2F16)
script>the literal text script> (case insensitive) <the literal < (6010 / 748 / 3C16)
Negated Character Class[^<]* *matches any number of characters outside the set below:
<the literal < (6010 / 748 / 3C16)
<the literal < (6010 / 748 / 3C16)
\/the literal / (4710 / 578 / 2F16)
scriptthe literal text script (case insensitive) \s*any whitespace character, repeated any number of times
>the literal > (6210 / 768 / 3E16)
g modifier: global. Finds all matches instead of stopping after the first
i modifier: insensitive. Matches without distinguishing uppercase and lowercase letters