<the literal < (6010 / 748 / 3C16)
\?the literal ? (6310 / 778 / 3F16)
phpthe literal text php (case insensitive) \Sany non-whitespace character
Group 1((?:(?!<\?php(?!\S)|\?>).)*\R[\s\S]*?) Non-Capturing Group(?:(?!<\?php(?!\S)|\?>).)* *repeats the group contents below any number of times:
Negative Lookahead(?!<\?php(?!\S)|\?>) 1st Alternative<\?php(?!\S) <the literal < (6010 / 748 / 3C16)
\?the literal ? (6310 / 778 / 3F16)
phpthe literal text php (case insensitive) \Sany non-whitespace character
\?the literal ? (6310 / 778 / 3F16)
>the literal > (6210 / 768 / 3E16)
.any character (except for line terminators)
\Ra newline sequence
*?matches any number of characters from the set below:
\sany whitespace character
\Sany non-whitespace character
\?the literal ? (6310 / 778 / 3F16)
>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