且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何删除C#.net中的字符串引用

更新时间:2023-11-14 09:25:34

我认为最简单的解决方案是.

I think the easy solution is to.

string search = "\"business adminstration\"";
search = search.Replace("\"", string.Empty);
search = search.Replace(" ", " and ");

Console.WriteLine(search);



输出:

商业和行政管理

或者也许使用正则表达式.



Output:

business and adminstration

Or perhaps work with regular expression.