<the literal < (6010 / 748 / 3C16)
\s*?any whitespace character, repeated any number of times
scriptthe literal text script (case sensitive) \s*?any whitespace character, repeated any number of times
Negated Character Class[^>]* *matches any number of characters outside the set below:
>the literal > (6210 / 768 / 3E16)
\s*?any whitespace character, repeated any number of times
>the literal > (6210 / 768 / 3E16)
\s*?any whitespace character, repeated any number of times
?repeats the group contents below at most once:
.+any character, repeated at least once
\s*?any whitespace character, repeated any number of times
<the literal < (6010 / 748 / 3C16)
\s*?any whitespace character, repeated any number of times
\/the literal / (4710 / 578 / 2F16)
scriptthe literal text script (case sensitive) \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
U modifier: Ungreedy. Quantifiers are lazy by default. A trailing ? makes a quantifier greedy
s modifier: single line. Allows a dot to match line terminators