<the literal < (6010 / 748 / 3C16)
\s*any whitespace character, repeated any number of times
divthe literal text div (case sensitive) \s+any whitespace character, repeated at least once
Comment: The mandatory class anywhere in the tag:
Positive Lookahead(?=[^>]*\bclass="(?<class>[^>]*?)") Negated Character Class[^>]* *matches any number of characters outside the set below:
>the literal > (6210 / 768 / 3E16)
\ban ASCII word boundary
class="the literal text class=" (case sensitive) Group class(?<class>[^>]*?) Negated Character Class[^>]*? *?matches any number of characters outside the set below:
>the literal > (6210 / 768 / 3E16)
"the literal " (3410 / 428 / 2216)
Comment: The rest of the attributes:
Negated Character Class[^>]* *matches any number of characters outside the set below:
>the literal > (6210 / 768 / 3E16)
Comment: The content of the <div>, in an ungreedy way:
.*?any character, repeated any number of times
Comment: The closing </div> tag:
\s*any whitespace character, repeated any number of times
/the literal / (4710 / 578 / 2F16)
\s*any whitespace character, repeated any number of times
divthe literal text div (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
s modifier: single line. Allows a dot to match line terminators
x modifier: extended. Ignores unescaped whitespace and comments outside character classes