imported errors and regexp, doing path validation on URLs to match the page title