I need to get list of files on some drive with paths that matches specific pattern, for example FA\\d\\d\\d\\d.xml where \\d is digit (0,1,2..9). So files can have names lik
Are you using C# 3?
Regex reg = new Regex(@"^FA[0-9]{4}\.xml$"); var files = Directory.GetFiles(yourPath, "*.xml").Where(path => reg.IsMatch(path));