View Single Post
 
Old 03-28-2012, 05:21 AM
surreytom surreytom is offline Windows XP Office 2010 32bit
Novice
 
Join Date: Mar 2012
Posts: 2
surreytom is on a distinguished road
Default Search for words starting in capitals

Hi,

I have a contract (I'm using MS Word 2010 but have a 2003 document) that I need to extract the 'defined terms' from and write to another file. That is to say, the words that are capitalised that are not the first word of a sentence. The entire document needs to be searched.

Sometimes a defined term has more than one word, for example, "Service Measures". In this instance I would ideally like "Service Measures" to be found rather than two results: "Service" and "Measures".

I have found the following wildcard search that finds words that begin with capitals that are not at the start of a sentence however this also returns the two preceding characters of the word:

[!.\!\?] <[A-Z][A-z0-9]{1,}>

However I am not sure how to:
a) export the return of the search to another document (to generate and build a list of defined terms)
b) delete the two preceding characters to just leave the capitalised words
c) run the macro for the entire document
d) edit the macro to group immediately subsequent words together (eg the "Service Measure" example above)

Any help that anyone can offer would be greatly appreciated!

Tom
Reply With Quote