PDF and billing date

Hi and I know I've been here before (couldn't find my account, so... a new Username and such),
But here's the crux of the issue:
* Hazel can match all that I ask of it; but the billing date, when the PDF is rendered through OCR, changes in the instance found (not in actual location on the PDF page). So, any idea how I can correct this, sometimes it's the 6th instance, but often, it's the 4th or some other.
Here's how I have my rule written:
If all of the following conditions are met
* Kind is PDF
* Name contains account number (for example 123456)
* Contents contain vendor name (for example Netflix)
* Contents match MMM DD, YYYY: Match the 6th occurrence from the beginning
It is this last line therein the Contents contain match that the issue is. I can manually work through the matches, but to get it to repeatedly, across a years worth of bills, to match the correct instance, works maybe 1/6 of the time at best. Often it is a manual intervention needed.
I have read and reread both the Hazel documentation related to this as well as the forums on similar situations and haven't (over many years) been able to figure this one out. I even have had a new situation (in Hazel 5.2) where the date match is grabbing a new date 20230316, that does not in anyway appear in the attached PDF. So I am stumped. Also this is the only bill I have that exhibits this shifting of the date matching issue, all my other ones are fine and this rule was originally either the child of working rules or the basis of newer working rules for other bills that don't have this issue.
Thank you for reading and any offered help, in advance. Hazel, along with 1Password and Notejoy, are my first 3 non-Apple app installs and have been (well 1Password and Hazel) for over 10 years on new Mac setup/refreshes.
Cheers,
Anthony
But here's the crux of the issue:
* Hazel can match all that I ask of it; but the billing date, when the PDF is rendered through OCR, changes in the instance found (not in actual location on the PDF page). So, any idea how I can correct this, sometimes it's the 6th instance, but often, it's the 4th or some other.
Here's how I have my rule written:
If all of the following conditions are met
* Kind is PDF
* Name contains account number (for example 123456)
* Contents contain vendor name (for example Netflix)
* Contents match MMM DD, YYYY: Match the 6th occurrence from the beginning
It is this last line therein the Contents contain match that the issue is. I can manually work through the matches, but to get it to repeatedly, across a years worth of bills, to match the correct instance, works maybe 1/6 of the time at best. Often it is a manual intervention needed.
I have read and reread both the Hazel documentation related to this as well as the forums on similar situations and haven't (over many years) been able to figure this one out. I even have had a new situation (in Hazel 5.2) where the date match is grabbing a new date 20230316, that does not in anyway appear in the attached PDF. So I am stumped. Also this is the only bill I have that exhibits this shifting of the date matching issue, all my other ones are fine and this rule was originally either the child of working rules or the basis of newer working rules for other bills that don't have this issue.
Thank you for reading and any offered help, in advance. Hazel, along with 1Password and Notejoy, are my first 3 non-Apple app installs and have been (well 1Password and Hazel) for over 10 years on new Mac setup/refreshes.
Cheers,
Anthony