Test, validate and match regular expressions
Matches a sequence of a word-character tag, any non-greedy content, and the corresponding closing tag, e.g., <b>text</b>. The non-greedy quantifier ensures minimal matching between tags, making it useful for extracting simple inline elements from HTML or XML-like strings. With the 'gm' flags, it works across multiple lines and can match all occurrences in a string. Ideal for parsing basic tag structures without nesting.