fork(1) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. Regex rx = new Regex("(?<=^.{10}).*");
  9. String a = rx.Replace("Hello", "...");
  10. String b = rx.Replace("Quick brown fox jumps over the lazy dog", "...");
  11. Console.WriteLine("'{0}'", a);
  12. Console.WriteLine("'{0}'", b);
  13. }
  14. }
Success #stdin #stdout 0.06s 34712KB
stdin
Standard input is empty
stdout
'Hello'
'Quick brow...'