I need to scan and OCR medical insurance reimbursement statements, and would like to extract the Provider's name for inclusion in the file name. In the document (verified by a cut and paste from the OCR'd PDF into TextWrangler) the information I need is in the form of an address, which looks like this in Text Wrangler with a <newline> symbol at the end of each line:
PROVIDER: Name of Provider or Facility
First Line of Address
Next Line of Address
etc.
The Provider's name line is of course essentially random, with varying number of letters and words.
The selection I'm using is "Contents Contain Match: with the below pattern and attribute (In the attribute there are no spaces or other attributes other than the "Anything" code.) The problem is that Hazel is extracting for the custom token the first two lines (Name plus first line of address). I was under the impression that the selection should stop at the end of the line, but it doesn't. What do I need to do to only pull out the first line (up to but not including the <newline>)?
