<the literal < (6010 / 748 / 3C16)
\s*any whitespace character, repeated any number of times
metathe literal text meta (case insensitive) \sany whitespace character
Comment: using lookahead to capture type to $1
Positive Lookahead(?=[^>]*?
\b(?:name|property|http-equiv)\s*=\s*
(?|"\s*([^"]*?)\s*"|'\s*([^']*?)\s*'|
([^"'>]*?)(?=\s*/?\s*>|\s\w+\s*=))
) Negated Character Class[^>]*? *?matches any number of characters outside the set below:
>the literal > (6210 / 768 / 3E16)
\ban ASCII word boundary
Non-Capturing Group(?:name|property|http-equiv) namethe literal text name (case insensitive) propertythe literal text property (case insensitive) 3rd Alternativehttp-equiv http-equivthe literal text http-equiv (case insensitive) \s*any whitespace character, repeated any number of times
=the literal = (6110 / 758 / 3D16)
\s*any whitespace character, repeated any number of times
Branch Reset Group(?|"\s*([^"]*?)\s*"|'\s*([^']*?)\s*'|
([^"'>]*?)(?=\s*/?\s*>|\s\w+\s*=)) 1st Alternative"\s*([^"]*?)\s*" "the literal " (3410 / 428 / 2216)
\s*any whitespace character, repeated any number of times
Negated Character Class[^"]*? *?matches any number of characters outside the set below:
"the literal " (3410 / 428 / 2216)
\s*any whitespace character, repeated any number of times
"the literal " (3410 / 428 / 2216)
2nd Alternative'\s*([^']*?)\s*' 'the literal ' (3910 / 478 / 2716)
\s*any whitespace character, repeated any number of times
Negated Character Class[^']*? *?matches any number of characters outside the set below:
'the literal ' (3910 / 478 / 2716)
\s*any whitespace character, repeated any number of times
'the literal ' (3910 / 478 / 2716)
3rd Alternative
([^"'>]*?)(?=\s*/?\s*>|\s\w+\s*=) Negated Character Class[^"'>]*? *?matches any number of characters outside the set below:
"the literal " (3410 / 428 / 2216)
'the literal ' (3910 / 478 / 2716)
>the literal > (6210 / 768 / 3E16)
Positive Lookahead(?=\s*/?\s*>|\s\w+\s*=) \s*any whitespace character, repeated any number of times
/?optionally matches the literal / (4710 / 578 / 2F16)
\s*any whitespace character, repeated any number of times
>the literal > (6210 / 768 / 3E16)
\sany whitespace character
\w+any word character, repeated at least once
\s*any whitespace character, repeated any number of times
=the literal = (6110 / 758 / 3D16)
Comment: capture the content to $2
Negated Character Class[^>]*? *?matches any number of characters outside the set below:
>the literal > (6210 / 768 / 3E16)
\ban ASCII word boundary
contentthe literal text content (case insensitive) \s*any whitespace character, repeated any number of times
=the literal = (6110 / 758 / 3D16)
\s*any whitespace character, repeated any number of times
Branch Reset Group(?|"\s*([^"]*?)\s*"|'\s*([^']*?)\s*'|
([^"'>]*?)(?=\s*/?\s*>|\s\w+\s*=)) 1st Alternative"\s*([^"]*?)\s*" "the literal " (3410 / 428 / 2216)
\s*any whitespace character, repeated any number of times
Negated Character Class[^"]*? *?matches any number of characters outside the set below:
"the literal " (3410 / 428 / 2216)
\s*any whitespace character, repeated any number of times
"the literal " (3410 / 428 / 2216)
2nd Alternative'\s*([^']*?)\s*' 'the literal ' (3910 / 478 / 2716)
\s*any whitespace character, repeated any number of times
\s*any whitespace character, repeated any number of times
'the literal ' (3910 / 478 / 2716)
3rd Alternative
([^"'>]*?)(?=\s*/?\s*>|\s\w+\s*=) Negated Character Class[^>]* g modifier: global. Finds all matches instead of stopping after the first
i modifier: insensitive. Matches without distinguishing uppercase and lowercase letters
x modifier: extended. Ignores unescaped whitespace and comments outside character classes