fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. // your code goes here
  9. var tet = " bb d n ";
  10.  
  11. var bbb = Regex.Replace( tet, "\\s", string.Empty);
  12.  
  13. Console.WriteLine("before :" + tet + " after :" + bbb);
  14. }
  15. }
Success #stdin #stdout 0.02s 134720KB
stdin
Standard input is empty
stdout
before : bb d n  after :bbdn