You are hand-writing a parser. You'll always be "using a parser". It will take you less time to learn to use
HTML::HeadParser than it will to study the HTML specifications and learn to write regular expressions that match arbitrary meta-equiv strings correctly. Trust me on that.
-- Randal L. Schwartz, Perl hacker