Test, validate and match regular expressions
This regex matches HTML/XML markup components, capturing opening tags with attributes (e.g., `<div class="example">`), individual word characters, and closing tags with optional whitespace. It's designed for basic HTML/XML tokenization or parsing tasks where you need to extract structural elements from markup. The pattern handles attribute-value pairs in quotes and separates different tag components into capture groups.