This content has been marked as final. Show 2 replies
I have a string like
And I want to replace variables with appropriate values. Now I do this with next code:
myString.replace("%seriesName%", seriesName).replace("%pipeKey%", pipeKey).replace("%kmFrom%", kmFrom).replace("%kmTo%", kmTo).replace("%modeKey%", modeKey);
Maybe there is shorter and prettier algorithm exists?