fork(1) 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. string s = "12345 ABC6789";
  10. s = Regex.Replace(s, @"(?<=.{3}).*(?=.{3})", "");
  11. Console.WriteLine(s);
  12. }
  13. }
Success #stdin #stdout 0.04s 134592KB
stdin
Standard input is empty
stdout
123789