Why your regex matches too much: greedy vs lazy quantifiers
You write <.+> to grab an HTML tag, run it on <b>bold</b>, and get the whole string instead of <b>. That's greediness, and it trips up almost everyone once.
Greedy by default
Quantifiers like *, + and