Functional spider test for broken links?

Hi,

After refactoring my site to have smaller controllers, I would like to
spider test my site to find any broken links. Is there a way to do
this with functional tests? Maybe regular expressions to find links
and then follow them? Has anyone tried this or have a function they
could share?

Thanks,
Peter