How to remove comma separated value from a string?

后端 未结 10 1850
你的背包
你的背包 2021-01-03 00:13

I want to remove a comma separated value from the string..

suppose I have a string like this

string x=\"r, v, l, m\"

and i want to

10条回答
  •  时光取名叫无心
    2021-01-03 00:47

    String input = "r, v, l, m, ";
    
    string itemToReplace = "v, ";
    
    string output = input.Replace(itemToReplace, string.Empty)
    

提交回复
热议问题