<h2the literal text <h2 (case sensitive) \s*a Unicode whitespace character, repeated any number of times
>the literal > (6210 / 768 / 3E16)
\s*a Unicode whitespace character, repeated any number of times
*?matches any number of characters from the set below:
\Sany character that is not Unicode whitespace
\sa Unicode whitespace character
\s*a Unicode whitespace character, repeated any number of times
</h2the literal text </h2 (case sensitive) \s*a Unicode whitespace character, repeated any number of times
>the literal > (6210 / 768 / 3E16)
\s*a Unicode whitespace character, repeated any number of times
*?matches any number of characters from the set below:
\Sany character that is not Unicode whitespace
\sa Unicode whitespace character
Positive Lookahead(?=\s*<h2\s*>|\s*$) 1st Alternative\s*<h2\s*> \s*a Unicode whitespace character, repeated any number of times
<h2the literal text <h2 (case sensitive) \s*a Unicode whitespace character, repeated any number of times
>the literal > (6210 / 768 / 3E16)
\s*a Unicode whitespace character, repeated any number of times
$end of string, or before its final line terminator
g modifier: global. Finds all matches instead of stopping after the first