I'd like to check start with "Text" and next is numeric. I want this with Regex but can't make it well.
below is example and I only want to get "Test2018.txt", "Test2019.txt"
List<string> fileNames = new List<string>() {"Test2018.txt", "Test2019.txt", "TestEvent2018.txt", "TestEvent2019.txt"};
fileNames.Where(p => Regex.IsMatch(p, "Test^[0-9]+*") == true);