Contents contain match (optional character)

I’m OCR’ing several scanned PDFs using PDFPenPro and Hazel. In those files I have multiple instances of a word preceding a number, a date or a status. The one I need is the number after that specific word.
As you may know, OCR is never perfect, so it sometimes comes in first, sometimes in second and some other times it’s the last text on the file. The number also is recognized with spaces (or not).
So, is there a way to format the “contain match” with a custom text containing optional spaces between each digit?
As you may know, OCR is never perfect, so it sometimes comes in first, sometimes in second and some other times it’s the last text on the file. The number also is recognized with spaces (or not).
So, is there a way to format the “contain match” with a custom text containing optional spaces between each digit?