updated regex in activate_links