Okay, well, it's the same idea, except that <foo>
is like an open paren, and </foo>
is like a close paren!
Except one slight difference is that the parentheses don't show up at all in the result list, whereas you do want to preserve what kind of tag this is.