Find / Replace hard Carriage Return with Line break.
Replacing carriage return with line return in specific string
I have a large document with a number of clauses which start
Clause XX (carriage return)
Title of Clause
And I want it replaced with
Clause XX (Line return)
Title of Clause
where XX is the number of the clause - currently running from 1 to 130 but can vary in different documents
What i have tried so far is using the replace command, selecting more \nd ticking use wild cards. I have then used the following which i thought would work
Find What: Article ([0-9])(^13)
Replace with: \1 (^10)
Where I believe ^13 is Carriage return and ^10 is Line break.
The reason for doing this is that I want to reformat all there Clause Titles as Style Heading 2 so I can use them in a Table of Contents with both Parts appearing as one entry as opposed to two separate entries because of the Carriage Returns...
NOTE: it is important that the Article XX is followed by a Carriage return (or space and Carriage Return) because the Clauses are also refereed to within the text, and I dont want to replace them.
Any assistance in getting this to work most welcome.
PS: sorry but I dont want to do this with a macro.
Thanks
GreenBoy
Last edited by Charles Kenyon; 03-11-2018 at 07:27 AM.
Reason: Mark as solved
|