figured it out!
this line works: update topic_links set domain = regexp_replace(domain, [old_domain], [new_domain])