what is that best way to substitute in string something like ${somename}
with its corresponding value. procedural wise, stepping through each found
match and replace accordingly
One way in pseudo code:
string str4subs = "something is ${param1}${param2} some other things
${exprk} whatever"; // in real life it may be a lot longer and with more
substitution required
Regex myregex = new Regex("(\$\{\w\}, Regexoptions.ignoreWhitespace|
Regexoptions.multiLine |Regexoptions.ignorecase)";
Match myMatch = new myregex.Match(str4subs)
// oops, I am stuck here as to how to use match group or capture to replace
with the corresponding value
// don't want to iterate all possible pair
I need help here