Naming and filing receipts by date

Hello,
I love Hazel's ability to search files for patterns such as dates. I'm trying to create a rule or rules to scan a folder of receipts, look for the date and prepend it to the filename, then sort it into subfolder for the corresponding year.
For example, if it finds "1/24/1984" in the file, Hazel should prepend the filename with "1984-01-24", then move it to the subfolder "1984".
Currently, it seems 1 Hazel rule is required for each possible date pattern, e.g., "d.m.yy", "d.m.yyyy", "dd.mm.yy", "dd.mm.yyyy", "m/d/yy", "mm/dd/yyyy", "Month dd, yyyy", etc., in order for renaming (prepending the date) to work.
Also, for some reason my additional rule to move files whose name starts with "2014" to a folder named "2014" is not being triggered. The rule is simply:
Is there a way to pack all these rules into one or two Hazel rules, perhaps with a script?
I'd be very grateful for any help. This would be the Holy Grail of electronic receipt filing!
Kind regards,
Albert
I love Hazel's ability to search files for patterns such as dates. I'm trying to create a rule or rules to scan a folder of receipts, look for the date and prepend it to the filename, then sort it into subfolder for the corresponding year.
For example, if it finds "1/24/1984" in the file, Hazel should prepend the filename with "1984-01-24", then move it to the subfolder "1984".
Currently, it seems 1 Hazel rule is required for each possible date pattern, e.g., "d.m.yy", "d.m.yyyy", "dd.mm.yy", "dd.mm.yyyy", "m/d/yy", "mm/dd/yyyy", "Month dd, yyyy", etc., in order for renaming (prepending the date) to work.
Also, for some reason my additional rule to move files whose name starts with "2014" to a folder named "2014" is not being triggered. The rule is simply:
If all of the following conditions are met
Kind is not Folder
Name starts with 2014
Do the following to the matched file or folder:
Move to folder 2014
Is there a way to pack all these rules into one or two Hazel rules, perhaps with a script?
I'd be very grateful for any help. This would be the Holy Grail of electronic receipt filing!
Kind regards,
Albert