Regular Expression To Remove Consecutive Paragraph End Symbols


I have a long, long document (864 pgs) that, as a result of the conversion of the original book, has placed a single word (God) on a line all by itself. There are hundreds of these occurrences, and I want to correct them all with one Find and Replace.  I have not figured out how to do that in the built-in Find and Replace (using Regular Expressions) for Writer, but I did figure out how to do it using the Alternative Search extension.

Here is an example of the perpetually isolated-to-line-of-its-own word:









So, I want to remove the paragraph marks ( ¶ ) after: "...Glory of (sp)", and after "God" in the next line, to bring the first three lines (as depicted) together as one.
  1. Assuming you have already downloaded and installed Alternative Search for LibreOffice Writer, the first step is to open Alternative Search. Then style your search like this: (in the Replace box, type in God followed by a space. If your wind up with some double spaces, you can clean them up later.)
  2. Click on "Replace All."
That's all there is to it.

(We recommend you bookmark this blog. Trying to find helpful information in forums usually just ends in making you frustrated and angry. This blog does not speculate or guess. If we post it, we've tried it and it works. As with all our posts, if you don't care about the background info, you can head straight to the yellow highlighted sections for the problem and the fix.)

Comments

Popular posts from this blog

Installing Donation Version of FreeFileSync to Replace Free Flatpak Version

Using Thorium Reader to Read DRM protected Readium lcpl books from archive.org, Linux Ubuntu

Unable to Install Calibre after fresh (new) Ubuntu 24.04 install, Solution