Formatting text after cross references
I am trying to do a find and replace in Word that has cross references in the string.
I need to find Clause 1.1 (Definitions) and replace with Clause 1.1 (%%%Definitions%%%) so I can find the %%%Definitions%%% and format the word Definitions as needed.
I can do the 1.1 if it has not be references as Clause ([0-9]{1,}).([0-9]{1,}) \((*)\) and the replace it with Clause \1.\2 (%%%\3%%%) however if it has already been cross referenced that will not work.
I have search trying to find a wildcard that will work with the cross references and have found nothing yet. I do a lot of documents where the clause name either has to be bolded or italicized and I would like to be able to run a find and replace or even a macro to do this for me and my coworkers.
Thank you in advance for anyone help.
|