Answers for "how to remove particular string from string in c#"

C#
2

c# remove word from string

public static string RemoveHTML(string text)
{
    text = text.Replace(" ", " ").Replace("<br>", "n").Replace("description", "").Replace("INFRA:CORE:", "")
        .Replace("RESERVED", "")
        .Replace(":", "")
        .Replace(";", "")
        .Replace("-0/3/0", "");
        var oRegEx = new System.Text.RegularExpressions.Regex("<[^>]+>");
        return oRegEx.Replace(text, string.Empty);
}
Posted by: Guest on August-25-2020
2

c# remove specific character from string

string phrase = "this is, a string with, too many commas";
phrase = phrase.Replace(",", "");
Posted by: Guest on March-01-2020

Code answers related to "how to remove particular string from string in c#"

C# Answers by Framework

Browse Popular Code Answers by Language