Strip provider name from PDF

Talk, speculate, discuss, pontificate. As long as it pertains to Hazel.

Moderators: Mr_Noodle, Moderators

Strip provider name from PDF Fri Aug 30, 2013 3:11 pm • by ssmith001
I am attempting to create a rule that will rename the file based on some content of the PDF, in this case, the name of the medical provider. All the documents will contain the text of "Provider:" followed by the name of the provider, which in my test case, is Mayo Clinic Rochester.

My question is this, how can I create a custom token that will grab the provider's name from the PDF, without hardcoding the fact that it has 3 words. What I mean by that is that another document might have a provider of "Lakeview Clinic".
ssmith001
 
Posts: 2
Joined: Fri Aug 30, 2013 3:04 pm

Re: Strip provider name from PDF Thu Sep 05, 2013 12:20 pm • by Mr_Noodle
Is there a newline/linebreak/carriage return after the name? If so, you can try using "anything" to match that. It will grab all the text up until a newline.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Open Discussion