in reply to Parsing HTML tags with regex

Try HTML::Parser.

Regards,
Murugesan Kandasamy
use perl for(;;);