Build, test, and debug regular expressions
This regex matches HTML/XML <draw> elements in two forms: self-closing tags like <draw/> or <draw attr="value"/>, and paired tags containing content like <draw>text</draw>. Group 1 captures any attributes following the tag name, while Group 2 captures the inner content between opening and closing tags. Commonly used to extract draw elements from markup documents and parse their attributes and body content separately.