I'm calling match below but I'm getting an exception that says "Internal error in the expression evaluator." when I try and pass "*_sales.txt" in as config.FileNamePattern. For some reason it doesn't like this pattern. What am I doing wrong? I tried passing it in with and without the '@' symbol.
Match match = Regex.Match(Path.GetFileName(file), @config.FileNamePattern, RegexOptions.IgnoreCase);