有几个字符串,我想从这些字符串中删除所有“RG( ** )”。例如:
1、原字符串:</p>
Push("Command", string.Format(R.G("#{0} this is a string"), accID));
结果:
Push("Command", string.Format("#{0} this is a string", accID));
2、原字符串:</p>
Select(Case(T["AccDirect"]).WhenThen(1, R.G("input")).Else(R.G("output")).As("Direct"));
结果:
Select(Case(T["AccDirect"]).WhenThen(1, "input").Else("output").As("Direct"));
3、原字符串:</p>
R.G("this is a \"string\"")
结果:
"this is a \"string\""
4、原字符串:</p>
R.G("this is a (string)")
结果:
"this is a (string)"
5、原字符串:</p>
AppendLine(string.Format(R.G("[{0}] Error:"), str) + R.G("Contains one of these symbols: \\ / : ; * ? \" \' < > | & +"));
结果:
AppendLine(string.Format("[{0}] Error:", str) + "Contains one of these symbols: \\ / : ; * ? \" \' < > | & +");
6、原字符串:</p>
R.G(@"this is the ""1st"" string.
this is the (2nd) string.")
结果:
@"this is the ""1st"" string.
this is the (2nd) string."
请帮忙。