in reply to Regular Expression

Please don't try to use regular expressions to parse HTML. It will generally end in tears.

CPAN has a number of modules that you can use to parse HTML properly. In this case HTML::TreeBuilder looks like it might be your best bet.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

s/Treebuilder/TreeBuilder/ - dvergin 2003-01-02