View Single Post
 
Old 05-31-2021, 04:15 PM
Cendrinne's Avatar
Cendrinne Cendrinne is offline Windows 10 Office 2019
Competent Performer
 
Join Date: Aug 2019
Location: Montreal Quebec Canada
Posts: 190
Cendrinne is on a distinguished road
Default Help with a logical code, end of paragraph lines

Hello Pro's,
I'll try my darnest to explain what I need, since it's hard for me to explain without and image, and I don't know how to enclose an image without granting access to my PC. It's a corporate thing.

My issue:

Long paragraphs, that overflows to the next line due to margins, how do I do a Find and Replace with situations where the end of line has an open parentheses, such as:
Here below is 2 examples:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricies (the
purus lectus) malesuada libero, sit amet commodo magna eros quis urna.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricies (as
purus lectus) malesuada libero, sit amet commodo magna eros quis urna.
So I want to:
  1. Select an area, in a large document;
  2. do a Find and Replace,

If it sees at the end of all sentences, an open parenthese with a Word,
I want to add a non-breaking space = ^s so it will be glued to the following word so a sentence will NOT end with an open parentheses at the end of a line.

So in these above cases: (the^spurus lectus) or (as^spurus lectus).

Is that doable without touching all open braket with a word?

I've been searching. My logic is thinking go to end of sentence and find the sentences that ends with (the or (as.

Any insights would be sooooooooooooooo appreciated

Cendrinne
Reply With Quote