Thanks Jay, appreciate your time!
And I’ve learned the hard way to make a backup before I do anything serious
update: It worked just great, but I had to use \n instead of /.
Also, it’s Topic and Post in the code above
Good idea to do a rebake after running this as well. In my case, it was to regenerate thumbnails.