in reply to lovely regexs

Avoid using regular expressions on HTML.

HTML::TokeParser::Simple can do the job for you. Hints: