How to replace characters with another one with C # [duplicate]

0

For example: 4587/1235/7554 And then replaced 4587; 1235; 7554

Remove spaces and in place of the slash, put semicolons, how do you do this in C #?

    
asked by anonymous 04.08.2018 / 14:49

1 answer

1
 string string1 = "44 / 44 / 55";
 string string2  = string1.Replace(" / ",";");
    
04.08.2018 / 15:26