I am parsing several text files looking for date fields. I want to find this pattern - Date: mm/dd/yyyy but want to exlude this pattern - Cheque Date: mm/dd/yyyy. I have this working for finding the first pattern but it also finds the second pattern as well -
string pattern = @"Date:\s*(.+?)\r";
Using this pattern I can find all combination of dates and not just mm/dd/yyyy.