Can I parse (X)HTML that way, or should I go back to regex?
Regex is overkill for this. Just split the input string on '<' and '>'.
Regex is overkill for this. Just split the input string on '<' and '>'.