Test, validate and match regular expressions
Tokenizes an HTML string into five distinct parts via capture groups: HTML entities like & or , opening or self-closing tags like <div ...> (lazy match), closing tags like </div>, word/hyphen sequences, and runs of punctuation or special characters. With global and multiline flags, it's ideal for splitting or matching HTML content into structured tokens for parsing, sanitization, or text analysis.