I just wondered what\'s the easiest way to replace a string characters that must be replaced subsequently.
For example:
var str = \"[Hello World]\";
What about:
str = str.Replace("[", "$1[$2") .Replace("]", "$1]$2") .Replace("$1", "[") .Replace("$2", "]");