Build, test, and debug regular expressions
This regex matches a `<child` element in an XML or HTML document and captures the value of its `attr2` attribute into a named group called `value`. It allows for other attributes to appear before `attr2` and supports both single and double quotes around the attribute value. It is particularly useful for simple data extraction tasks where you need to parse specific properties from structured markup without relying on a full DOM parser.