http://www.perlmonks.org?node_id=243980


in reply to Regex a little less greedy please

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