> I have a task where I need to figure out if certain HTML tags (Rather > Java Server Pages tags, but they're still HTML, kinda :) I did something similar, recently. I found it much easier for my purposes to subclass sgmllib.SGMLParser, and add start_* and end_* methods. Alex.