use regexp to extract links to other pages.