Remove
Replace
Split
一致するすべての文字列を置換します。
str.Replace(oldValue, newValue)
下記の値を入力するとサンプルに即時反映されます。
string
result
Console
WriteLine
string text = "Hello World World"; string result = text.Replace("World", "C#"); Console.WriteLine(result); // "Hello C# C#"