Test, validate and match regular expressions
Matches HTML/XML tag pairs including their content. It captures opening tags (like <div> or <span>) and looks for corresponding closing tags using a backreference to ensure tag name matching. Useful for basic HTML parsing, content extraction between tags, or tag filtering operations, though it may struggle with nested tags of the same type.