我需要一种方法来做到这一点:
"test, and test but not testing. But yes to test".Replace("test", "text")
Run Code Online (Sandbox Code Playgroud)
归还这个:
"text, and text but not testing. But yes to text"
Run Code Online (Sandbox Code Playgroud)
基本上我想替换整个单词,但不是部分匹配.
注意:我将不得不使用VB(SSRS 2008代码),但C#是我的正常语言,因此两者中的响应都很好.