in reply to extract content from html file

Don't use a regular expression. Just get HTML::ExtractTable to do the deed for you.