Batch processing to search and replace in all posts

you can use script/discourse remap it may do the trick.