fork(1) download
  1. using System;
  2. using System.Globalization;
  3. using System.Linq;
  4. using System.Collections.Generic;
  5.  
  6. public class Test
  7. {
  8.  
  9.  
  10. public static void Main()
  11. {
  12. var listOfString = new List<string>()
  13. {
  14. "full1","full1inc1","full1inc2","full1inc3","full2","full2inc1","full2inc2","full3","full100inc100"
  15. };
  16.  
  17. var isolatedList = listOfString
  18. .Select(str => "full" + new string(str.Reverse().TakeWhile(Char.IsDigit).Reverse().ToArray()));;
  19. foreach(string str in isolatedList)
  20. Console.WriteLine(str);
  21. }
  22. }
Success #stdin #stdout 0.03s 33968KB
stdin
Standard input is empty
stdout
full1
full1
full2
full3
full2
full1
full2
full3
full100