hungcoder92

string.Split()

Apr 16th, 2022
1,449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1. using System;
  2.  
  3. namespace remore_characters_from_string
  4. {
  5.         static void Main(string[] args)
  6.         {
  7.             string str = "Something @to ,Write.;';";
  8.             str = string.Join("", str.Split('@', ',', '.', ';', '\''));
  9.             Console.WriteLine(str);
  10.         }
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment