The best way is the way you've decided to walk by yourself.
This
Mehrere wörter gleichzeitig mit $replace(string,from,to) ersetzen
forum thread can be point in one direction.
There may be many other recommendations covered in Forum User threads or Forum FAQ threads.
Do use the Forum Search machine to find some.
DD.20081210.0655.CET