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

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

"string" ... "date", find the date 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).
mevans
 
Posts: 11
Joined: Sat Nov 17, 2018 9:50 pm

Re: "string" ... "date", find the date 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.
Mr_Noodle
Site Admin
 
Posts: 11236
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support