<divthe literal text <div (case sensitive) .*?any character (except for line terminators), repeated any number of times
>the literal > (6210 / 768 / 3E16)
Group 1((?:(?!<\/?div)[\s\S]|(?R))*) Non-Capturing Group(?:(?!<\/?div)[\s\S]|(?R))* *repeats the group contents below any number of times:
1st Alternative(?!<\/?div)[\s\S] Negative Lookahead(?!<\/?div) <the literal < (6010 / 748 / 3C16)
\/?optionally matches the literal / (4710 / 578 / 2F16)
divthe literal text div (case sensitive) \sany whitespace character
\Sany non-whitespace character
(?R)recurses into the entire pattern
<the literal < (6010 / 748 / 3C16)
\/the literal / (4710 / 578 / 2F16)
div>the literal text div> (case sensitive) g modifier: global. Finds all matches instead of stopping after the first