The dot plus will match all text including tags, thus matching everything from the opening of the first tag to the closing of the last tag.
Use:
to restrict the match using a set which excludes tag opening and closing brackets.
chaley, if the html contains a bracket in the text or class there are other problems bigger than a failed regex...