<tagthe literal text <tag (case sensitive) Non-Capturing Group(?:\s*>|\s+(?=((?:"[\S\s]*?"|'[\S\s]*?'|(?:(?!\/>)[^>])?)+))\1>) \s*any whitespace character, repeated any number of times
>the literal > (6210 / 768 / 3E16)
2nd Alternative\s+(?=((?:"[\S\s]*?"|'[\S\s]*?'|(?:(?!\/>)[^>])?)+))\1> \s+any whitespace character, repeated at least once
Positive Lookahead(?=((?:"[\S\s]*?"|'[\S\s]*?'|(?:(?!\/>)[^>])?)+)) Group 1((?:"[\S\s]*?"|'[\S\s]*?'|(?:(?!\/>)[^>])?)+) Non-Capturing Group(?:"[\S\s]*?"|'[\S\s]*?'|(?:(?!\/>)[^>])?)+ +repeats the group contents below at least once:
1st Alternative"[\S\s]*?" "the literal " (3410 / 428 / 2216)
*?matches any number of characters from the set below:
\Sany non-whitespace character
\sany whitespace character
"the literal " (3410 / 428 / 2216)
2nd Alternative'[\S\s]*?' 'the literal ' (3910 / 478 / 2716)
*?matches any number of characters from the set below:
\Sany non-whitespace character
\sany whitespace character
'the literal ' (3910 / 478 / 2716)
3rd Alternative(?:(?!\/>)[^>])? Non-Capturing Group(?:(?!\/>)[^>])? ?repeats the group contents below at most once:
Negative Lookahead(?!\/>) \/the literal / (4710 / 578 / 2F16)
>the literal > (6210 / 768 / 3E16)
Negated Character Class[^>] >the literal > (6210 / 768 / 3E16)
\1the text saved by group 1
>the literal > (6210 / 768 / 3E16)
Group 2((?:(?=(<(?:(?:(?:(script|style|object|embed|applet|noframes|noscript|noembed)(?:\s+(?:"[\S\s]*?"|'[\S\s]*?'|(?:(?!\/>)[^>])?)+)?\s*>)[\S\s]*?<\/\4\s*(?=>))|(?:\/?[\w:]+\s*\/?)|(?:[\w:]+\s+(?:"[\S\s]*?"|'[\S\s]*?'|[^>]?)+\s*\/?)|\?[\S\s]*?\?|(?:!(?:(?:DOCTYPE[\S\s]*?)|(?:\[CDATA\[[\S\s]*?\]\])|(?:--[\S\s]*?--)|(?:ATTLIST[\S\s]*?)|(?:ENTITY[\S\s]*?)|(?:ELEMENT[\S\s]*?))))>|[\S\s]))\3)*?) Non-Capturing Group(?:(?=(<(?:(?:(?:(script|style|object|embed|applet|noframes|noscript|noembed)(?:\s+(?:"[\S\s]*?"|'[\S\s]*?'|(?:(?!\/>)[^>])?)+)?\s*>)[\S\s]*?<\/\4\s*(?=>))|(?:\/?[\w:]+\s*\/?)|(?:[\w:]+\s+(?:"[\S\s]*?"|'[\S\s]*?'|[^>]?)+\s*\/?)|\?[\S\s]*?\?|(?:!(?:(?:DOCTYPE[\S\s]*?)|(?:\[CDATA\[[\S\s]*?\]\])|(?:--[\S\s]*?--)|(?:ATTLIST[\S\s]*?)|(?:ENTITY[\S\s]*?)|(?:ELEMENT[\S\s]*?))))>|[\S\s]))\3)*? *?repeats the group contents below any number of times:
Positive Lookahead(?=(<(?:(?:(?:(script|style|object|embed|applet|noframes|noscript|noembed)(?:\s+(?:"[\S\s]*?"|'[\S\s]*?'|(?:(?!\/>)[^>])?)+)?\s*>)[\S\s]*?<\/\4\s*(?=>))|(?:\/?[\w:]+\s*\/?)|(?:[\w:]+\s+(?:"[\S\s]*?"|'[\S\s]*?'|[^>]?)+\s*\/?)|\?[\S\s]*?\?|(?:!(?:(?:DOCTYPE[\S\s]*?)|(?:\[CDATA\[[\S\s]*?\]\])|(?:--[\S\s]*?--)|(?:ATTLIST[\S\s]*?)|(?:ENTITY[\S\s]*?)|(?:ELEMENT[\S\s]*?))))>|[\S\s])) Group 3(<(?:(?:(?:(script|style|object|embed|applet|noframes|noscript|noembed)(?:\s+(?:"[\S\s]*?"|'[\S\s]*?'|(?:(?!\/>)[^>])?)+)?\s*>)[\S\s]*?<\/\4\s*(?=>))|(?:\/?[\w:]+\s*\/?)|(?:[\w:]+\s+(?:"[\S\s]*?"|'[\S\s]*?'|[^>]?)+\s*\/?)|\?[\S\s]*?\?|(?:!(?:(?:DOCTYPE[\S\s]*?)|(?:\[CDATA\[[\S\s]*?\]\])|(?:--[\S\s]*?--)|(?:ATTLIST[\S\s]*?)|(?:ENTITY[\S\s]*?)|(?:ELEMENT[\S\s]*?))))>|[\S\s]) 1st Alternative<(?:(?:(?:(script|style|object|embed|applet|noframes|noscript|noembed)(?:\s+(?:"[\S\s]*?"|'[\S\s]*?'|(?:(?!\/>)[^>])?)+)?\s*>)[\S\s]*?<\/\4\s*(?=>))|(?:\/?[\w:]+\s*\/?)|(?:[\w:]+\s+(?:"[\S\s]*?"|'[\S\s]*?'|[^>]?)+\s*\/?)|\?[\S\s]*?\?|(?:!(?:(?:DOCTYPE[\S\s]*?)|(?:\[CDATA\[[\S\s]*?\]\])|(?:--[\S\s]*?--)|(?:ATTLIST[\S\s]*?)|(?:ENTITY[\S\s]*?)|(?:ELEMENT[\S\s]*?))))> <the literal < (6010 / 748 / 3C16)
Non-Capturing Group(?:(?:(?:(script|style|object|embed|applet|noframes|noscript|noembed)(?:\s+(?:"[\S\s]*?"|'[\S\s]*?'|(?:(?!\/>)[^>])?)+)?\s*>)[\S\s]*?<\/\4\s*(?=>))|(?:\/?[\w:]+\s*\/?)|(?:[\w:]+\s+(?:"[\S\s]*?"|'[\S\s]*?'|[^>]?)+\s*\/?)|\?[\S\s]*?\?|(?:!(?:(?:DOCTYPE[\S\s]*?)|(?:\[CDATA\[[\S\s]*?\]\])|(?:--[\S\s]*?--)|(?:ATTLIST[\S\s]*?)|(?:ENTITY[\S\s]*?)|(?:ELEMENT[\S\s]*?)))) 1st Alternative(?:(?:(script|style|object|embed|applet|noframes|noscript|noembed)(?:\s+(?:"[\S\s]*?"|'[\S\s]*?'|(?:(?!\/>)[^>])?)+)?\s*>)[\S\s]*?<\/\4\s*(?=>)) Non-Capturing Group(?:(?:(script|style|object|embed|applet|noframes|noscript|noembed)(?:\s+(?:"[\S\s]*?"|'[\S\s]*?'|(?:(?!\/>)[^>])?)+)?\s*>)[\S\s]*?<\/\4\s*(?=>)) Non-Capturing Group(?:(script|style|object|embed|applet|noframes|noscript|noembed)(?:\s+(?:"[\S\s]*?"|'[\S\s]*?'|(?:(?!\/>)[^>])?)+)?\s*>) Group 4(script|style|object|embed|applet|noframes|noscript|noembed) scriptthe literal text script (case sensitive) Non-Capturing Group(?:\s+(?:"[\S\s]*?"|'[\S\s]*?'|(?:(?!\/>)[^>])?)+)? \s*any whitespace character, repeated any number of times
>the literal > (6210 / 768 / 3E16)
<the literal < (6010 / 748 / 3C16)
\/the literal / (4710 / 578 / 2F16)
\4the text saved by group 4
\s*any whitespace character, repeated any number of times
2nd Alternative(?:\/?[\w:]+\s*\/?) 3rd Alternative(?:[\w:]+\s+(?:"[\S\s]*?"|'[\S\s]*?'|[^>]?)+\s*\/?) 4th Alternative\?[\S\s]*?\? 5th Alternative(?:!(?:(?:DOCTYPE[\S\s]*?)|(?:\[CDATA\[[\S\s]*?\]\])|(?:--[\S\s]*?--)|(?:ATTLIST[\S\s]*?)|(?:ENTITY[\S\s]*?)|(?:ELEMENT[\S\s]*?))) >the literal > (6210 / 768 / 3E16)
\3the text saved by group 3
<the literal < (6010 / 748 / 3C16)
\/the literal / (4710 / 578 / 2F16)
tagthe literal text tag (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