using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { var paths = new List { new[] { \"20F\", \"21F\", \"70B\" } }; var valid = paths.Select(p => p.Select(t => new { Tag = t, IdStr = new string(t.Where(char.IsDigit).ToArray()) }).ToList()).ToList(); Console.WriteLine(\"Compiled\"); } }