Hi,
I'm testing hazel for processing of doxie-scanned and ocr'ed files. I'd started with my salary statements which I'd rename to a form like "Gehaltsabrechnung Month Year.pdf". So I gave it a try with the date matching to match for "Month Year" which contains month and year in text form. It works like a charm, if the exact form is found in the document.
Unfortunately the OCR is sometimes (more often than not) producing things like this:
F e b r u a r 2016
So i tried it with another date, which is in the form:
27.02.2016
This works, but unfortunately there are documents where OCR produces similar stuff as described for the first form, e.g with spaces between the numbers.
Now I'm wondering if there is any possibility to specify alternations of a pattern, so that I could match for
(Month as word|Month as two-digits)(anything)(Year)
I'm aware that I can create multiple rules, but that seems error-prone, since I need to keep the actions in sync.
Apart from that I can use nested conditions to match the different formats, but I cannot re-use the same pattern name and define precedence, so I cannot really use that to do the naming.
Any option I miss?
Best Regards,
Patrick