Replace every %key% in a string with its value — values can contain keys too, so expand recursively and catch missing keys and cycles.
Replace every %key% in a string with its value — values can contain keys too, so expand recursively and catch missing keys and cycles.
The discussion opens with the full question.