Bob103

C#_example_regular

Apr 21st, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.19 KB | None | 0 0
  1.             var s = Console.ReadLine();
  2.             var pattern = "\\s";
  3.             var replace = "";
  4.             Regex rgx = new Regex(pattern);
  5.             string res = rgx.Replace(s, replace);
Advertisement
Add Comment
Please, Sign In to add comment