I have been googling and am not sure how to approach this. I have a
file that I need to match. The date string in the filename varies so I
want to match any date.
What options do i have for matching the/any date or string. Is there a
method for matching?
yes! You want to use a regex. May I suggest something like:
On Thu, Feb 14, 2013 at 4:59 PM, Sloan R. [email protected]
code to run if no files matching pattern exist
code to run otherwise
You could also make the pattern more specific: