Richard Arnold

Richard Arnold

  • 1.7k
  • 13
  • 17.1k

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.