Click here to Skip to main content
15,882,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

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(",", "");
Share this answer
var file = File.ReadAllText(@"D:\test.csv");
        file = file.Replace("\",\"", "");
        file = file.Replace("\"", "");
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900