Parsing HTML/XML is somewhat tricky to do correctly (what with entities and all ... see
Super Search for more info), but if you know that there will not be any >'s in the tag, you may want to use a regexp like ...
m/<[^>]+>/
from the frivolous to the serious