Build, test, and debug regular expressions
Tokenizes input into simple HTML-like tag pairs and plain text. The first alternative matches a well-formed pair such as <b>text</b>, capturing the lowercase tag name and inner content via a backreference; the second alternative captures runs of text containing no complete tag pair. With global and multiline flags it is useful for lightweight markup parsing or splitting tagged content from surrounding text. Limitations: tag names must be lowercase letters with no attributes, and tags spanning newlines won't match without the s flag.