Sort by date in name?

I have a folder that updates with pictures from a security camera. It labels the files with camera name and date (yyyymmdd) How do I make a rule to sort these files into subfolders by the date in the name of the file? If I choose file name -> Matching how do I get it to recognize the date structure I have set up?
Thanks
Thanks