public static string Substitute(string value) { return Regex.Replace(value, match => GetVariable(match.Groups[1].Value)); }