For instance. I have as input string "635783455831176452" and want to replace every 6 with K, every 7 with L, and every 1 with U. Can this be done within 1 single Regex.Replace. I know I can use nested replace statements like
Regex.Replace(
Regex.Replace(
Regex.Replace(
"635783455831176452", "6+", "K"),
"7+", "L"),
"1+", "U");
However, the key is to use a single regex.replace. Is it possible, and if so what would be the syntax? Thank you much!