在csv中删除双引号内的逗号 [英] Remove comma within double quotes in csv
本文介绍了在csv中删除双引号内的逗号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这样的字符串
Hi,
I have a string like this
"Ubuntu / Linux 2.6.x / Linux 2.6","host scanned, found vuln"
我想删除之间的逗号
I want to remove the comma between
"host scanned, found vuln"
请帮助
Please help
推荐答案
string mainStr = "host scanned, found vuln";
string resultStr = mainStr.Replace(",", "");
var file = File.ReadAllText(@"D:\test.csv");
file = file.Replace("\",\"", "");
file = file.Replace("\"", "");
这篇关于在csv中删除双引号内的逗号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文