Build, test, and debug regular expressions
This regular expression is designed to extract attribute-value pairs from HTML or XML tags. It captures the attribute name in the first group and the corresponding value, whether it's quoted or unquoted, in the second group. It effectively handles values by using a negative lookahead to stop at the next attribute, a closing tag bracket, or a closing quote.