in reply to Regexp: Match anything except a certain word

And finally, what did I do? Use HTML::Parser. And learn some more about regular expressions and how to understand HTML::Parser better.