# this matches vm.tiktok.com links as well Use regex replace Find: /https?:\/\/(?:(?:vm|www)\.)?tiktok\.com\/((?:(?=@)@.+?\/video|(?!@)).+)/gi Replace: https://tiktxk.com/$1