I am using C#3.0 and dotnet framework 3.5.
Thanks
You could construct a regex from your basic file name plus (depending on the pattern) sub-regexes.
The sub-regexes could be
yyyy = @"\d{4}"
(unless you want to restrict a certain year range)
mm = @"(1[0-2]|0[1-9])"
dd = @"(3[01]|[12][0-9]|0[1-9])"
Build your regex by adding them in the correct order:
re = @"\AEUDataFiles" + yyyy + mm + dd + @"\.txt\Z"
Then you can check whether the filename(s) you've found match the regex:
foundMatch = Regex.IsMatch(subjectString, re);
Of course, this isn't a validation for correct dates (20100231 would pass), but that's probably not a problem in this case.