Build, test, and debug regular expressions
Matches HTML or XML tags by capturing a literal '<', one or more characters that are not '>', and a closing '>'. Group 1 captures the full tag (e.g., <div>) while Group 2 captures the tag name and attributes (e.g., div class="x"). Commonly used with String.replace() to strip HTML tags from a string, though it's a naive approach that won't handle edge cases like comments or malformed markup. The 'g' flag ensures all tags are matched, not just the first.