Test, validate and match regular expressions
This regex matches HTML or XML tags by finding text enclosed in angle brackets. The non-greedy quantifier (.*?) ensures each match captures a single tag, from an opening bracket (<) to the next closing bracket (>), rather than spanning multiple tags. It's commonly used for simple HTML parsing, tag extraction, or text sanitization tasks where you need to identify or manipulate markup elements in content.