Content Matching across 2 lines of text...

I would like to be able to rename files using the billing date on scanned and OCR'd pdf files.
I frequently find the 'Billing Date' text that I would want to use as a 'field' when searching for the date is on a line above the actual date I want.
I have tried a few things like specifying the number of occurrences so that the correct date is specified and this works occasionally (possibly because a number of bills from the same supplier don't have uniform date formats in the dates preceding the date information I need).
Is there a way within hazel to specify the preceding text on the line above and then indicate the data needed is on the line below ?
I frequently find the 'Billing Date' text that I would want to use as a 'field' when searching for the date is on a line above the actual date I want.
I have tried a few things like specifying the number of occurrences so that the correct date is specified and this works occasionally (possibly because a number of bills from the same supplier don't have uniform date formats in the dates preceding the date information I need).
Is there a way within hazel to specify the preceding text on the line above and then indicate the data needed is on the line below ?