Page 1 of 1

Pattern matching problem

PostPosted: Sun Aug 02, 2015 1:06 pm
by johnrpeckham
I am having trouble pattern matching a series of files (invoices) from a vendor because their date field is pretty random. A "grep" regex would be pretty straighforward, but I cannot seem to get a single rule that works for these patterns:

InvoiceDate : 07/20/2015
Invoice Date: 07/22/2015
Invoice Date : 07/22/2015
InvoiceDate : 07/20/2015
InvoiceDate 07/22/2015

It would be great if Hazel spit out some information on the pattern match process to help debug...

Re: Pattern matching problem

PostPosted: Mon Aug 03, 2015 11:08 am
by Mr_Noodle
I believe you also emailed about this? If not, say so otherwise I'll assume this was already handled there.

And a tip for others: open the file in Preview, select the text in question and paste it into a plain text document in TextEdit. That will show you the raw text, which may not be what you expect.