Find and replace words with tags?

I was wondering if there is the possibility in Trados Studio 2019 (editor) to batch find words and replace them with their corresponding subscript or superscript version. In general: is it possible to batch find and replace words with tags?

emoji