How to read @"TC__(\d{4}|\d{3})_8exp", if it is in the end of the Line!
I am getting two results:
TC__4373_8exp
TC__4373_8exp_source
I want just:
TC__4373_8exp
Code:
Regex reg = new Regex(@"TC__(\d{4}|\d{3})_8exp");
var FileNames_List_Jetzt_Dateien = Directory.GetFiles(yourPath, "*.html").Where(path => reg.IsMatch(path)).Select(Folder_Jetzt_Dateien => Path.GetFileNameWithoutExtension(Folder_Jetzt_Dateien));