I think you can save yourself a lot of pain by using HTML::TableExtract.
In reply to Re: ugly regex question by matija in thread ugly regex question by jcpunk