Page 1 of 1

"string" ... "date", find the date

PostPosted: Sat Jun 11, 2022 12:39 pm
by mevans
In my PDF, I have a string ("Payment due date") followed by some stuff (dollar payment, etc.) followed by the due date. I tried to search for "Payment due date:[...][due date]" but Hazel can't find a match with the "anything" ellipsis in there. (Also I'm selecting "match the 1st occurrence from the beginning"). Exact text:

...Minimum payment due:
New balance as of 06/09/22: Payment due date:
$35.00 $127.02 07/07/22...

In this example, I'd like to pull out "07/07/22", the first date following "Payment due date:" (skipping over $35.00 $127.02).

Re: "string" ... "date", find the date

PostPosted: Mon Jun 13, 2022 8:53 am
by Mr_Noodle
The "anything" token does not go across lines. If you add a space in there, that will match the newline.