Sorry, the file name would be something like this : abcdefg_YYYYMMDD.txt
My main question is not really how to parse the file name but how would i group them together. Lets say even the file name is only YYYYMMDD.txt nothing else.
Basically i have a method that zips the files. I want to be able to pass it a group of files based on their timestamp. So it will zip all file for Jan 1 together and all files for Jan 2 together etc.