ディレクトリ内のファイルを正規表現で

More than 5 years have passed since last update.

var reg = new Regex(filter);

var files = Directory.GetFiles(serchpath).Where(f => reg.IsMatch(f)).ToArray();