带有替换C#的Probem [英] Probem with replace c#
本文介绍了带有替换C#的Probem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我该如何替换c#中的逗号....ex
我有文字"codeproject",我只想发短信codeproject
我尝试使用string.replace(","),但不起作用
Hi How I can replace commas in c#.... ex
I have text "codeproject" and I want to text only codeproject
I tried with string.replace(""","") but doesn''t work
推荐答案
"但不起作用是 仍然不是有用的描述.
使用
"but doesn''t work" is still not a helpful description.
use
string.Replace("\"","")
如果您希望替换字符串中不存在的逗号,那么您应该
If your desire is to replace commas, which do not exist in your string, then you would
string.replace(",","")
这篇关于带有替换C#的Probem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文