This is the gist of it.  I removed the functions concerning what is to be done with the data, etc.; since that doesn't effect the extraction procedure.  Since there is a specific pattern to the data I wish to extract, I didn't use a form input field allowing it to be actively defined.  Now my only hurdle will be ensuring the best quality scan/OCR conversion to text.