fork(1) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var res = Regex.Replace("GroupOwner_1_2", "(_[^_]*){2}$", "");
  9. Console.WriteLine("'{0}'", res);
  10. }
  11. }
Success #stdin #stdout 0.03s 30664KB
stdin
Standard input is empty
stdout
'GroupOwner'