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
Use the Directory API to find FA????.xml, and run the resulting list through a regex filter:
FA????.xml
var fa = from f in Directory.GetFiles("FA????.xml") where Regex.Match(f, "FA\d\d\d\d\.xml") select f;