I'm looking for a tool that can identify a certain pattern within the text of a Microsoft Word document (.doc) or a PDF document.
By pattern I mean, for example, "all paragraphs starting with xxx and ending with zzz".
I need to be able to collect these data from two documents and compare them together and generate an excel sheet with the differences
Are there any tools that can help me with that? preferably open source. I will use it on windows and it has to be FOSS and if it is not available a library (with a C/C++ interface) would be nice.