Replace parameterized words in string text with actual values
Suppose i have defined strings like this with some value:
personName = "Jack", personAge = 8
Now, suppose i was given such String text:
"This will be place for ${personName} who is ${personAge} years old"
So i want to be able to:
find if the text contains such parametrized words (like ${personName})
in case of found replace this with the actual value and remove those ${} that is surrounding it
So the output after applying some formatting should be:
"This will be place for Jack who...