fork(1) download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Text.RegularExpressions;
  6.  
  7. public class Test
  8. {
  9. public static void Main()
  10. {
  11. var s = "test.BO.ID";
  12. var result = Regex.Match(s, @"(?<=\.).*");
  13. if (result.Success)
  14. Console.WriteLine(result.Value);
  15. var result2 = Regex.Match(s, @"\.(.*)");
  16. if (result2.Success)
  17. Console.WriteLine(result2.Groups[1].Value);
  18. }
  19. }
Success #stdin #stdout 0.03s 30656KB
stdin
Standard input is empty
stdout
BO.ID
BO.ID