Assuming you have only one occurrence of
=, you can do this in two steps:
. to match lazily (aka non-greedily).
This first step replaces all the occurrences of
saturn the next step then looks for the word
= and replaces it with
This assumes a single occurrence of
= on each line.
A better way (only assumes a single
= per line)
You can do it with a recursive macro:
This substitutes a single occurrence of
saturn. When stored as a macro and called recursively it will keep working on the file until there's nothing left to substitute. It's hackish but it works.