Richard Arnold

Richard Arnold

  • NA
  • 12
  • 16.9k

Read string contents between 2-dates

Feb 17 2013 6:57 PM
I have a PDF file, which contains text data sandwiched between dates. For example, one section of text would be prefaced with a date like Sunday, February 17. It then has text data that follows. The next section of text data would begin with Monday, February 18 and more text data.

What I want to do is open the file, locate the date header corresponding to the current date and copy it and the text that follows, up until the next date header.

Can anyone suggest a way to accomplish this?  Thanks in advance.