I am have been trying to figure out a way I can detect series of files. For instance:
If a given directory has the following files:
- Birthday001.jpg
- Birthday002.jpg
- Birthday003.jpg
- Picknic1.jpg
- Picknic2.jpg
- Afternoon.jpg.
I would like to get the condense the listing to something like
- Birthday ( 3 pictures )
- Picknic ( 2 pictures )
- Afternoon ( 1 picture )
How should I go about detecting the groups?