in reply to regexp problem

check HTML::LinkExtor so you wont have to parse HTML tags manually (which can be a pain in the proverbial ass)

Greetz
Beatnik
... Quidquid perl dictum sit, altum viditur.