Flexible date matching (optional spaces) for scanned docs?

Hi all --
I have been scanning a large number of paper financial statements that I'd like Hazel to rename including the statement date or date range. The PDFs have been OCRed but it is an imperfect process, leaving me with documents with dates that don't quite match up cleanly with a simple date pattern. The greatest error culprit by far is that the OCR misses spaces, giving text like:
January 1, 2007 - January 31, 2007
January 1,2007 - January 31, 2007
January 1, 2007 - January 31,2007
January 1, 2007 -January 31, 2007
January 1,2007- January 31, 2007
January 1,2007-January 31,2007
I know that Hazel's space-matching will match any number of spaces. However it looks like I need the equivalent of the regex ? operator, i.e. "match zero-or-one spaces". Is there a way to do this in Hazel? If not, can someone recommend a way to handle this parsing situation without painfully enumerating all possible spacing configurations as separate rules?
Thanks in advance!
I have been scanning a large number of paper financial statements that I'd like Hazel to rename including the statement date or date range. The PDFs have been OCRed but it is an imperfect process, leaving me with documents with dates that don't quite match up cleanly with a simple date pattern. The greatest error culprit by far is that the OCR misses spaces, giving text like:
January 1, 2007 - January 31, 2007
January 1,2007 - January 31, 2007
January 1, 2007 - January 31,2007
January 1, 2007 -January 31, 2007
January 1,2007- January 31, 2007
January 1,2007-January 31,2007
I know that Hazel's space-matching will match any number of spaces. However it looks like I need the equivalent of the regex ? operator, i.e. "match zero-or-one spaces". Is there a way to do this in Hazel? If not, can someone recommend a way to handle this parsing situation without painfully enumerating all possible spacing configurations as separate rules?
Thanks in advance!