changed link extraction from boost::regex to custom code