In MS Word you can find a paragraph mark by entering ^p. It is a very useful function if you copy text that put an unwanted paragraph mark at the end of every line if it it is in the middle of a sentence.
Tick “Regular expressions” in “Search and replace” dialog. Search for $, replace with space.
Wow, such a simple straightforward solution. I’ve been searching help forums for hours looking for help on this very issue. Thank you so much!
Hi,
I am really struggling with this issue of finding and replacing paragraph mark. The regular expression let me find and replace the paragraph mark itself, but if I am looking for a combinaison of specific characters and paragraph mark, it escape the paragraph mark.
I.e. if I want to replace “- $” by nothing (to remove the hyphen), it will only remove the "- " and keep the paragraph mark. Eventually, I did it with MS Word. Now I am trying to replace the paragraph mark without dot (i.e. [any character beside “.” + \p] by space and keep the paragraph mark with dot alike…
Suggestions?
Best regards,
Pierre
Hello. I couldn’t do this (replace a praragraph mark only when it follows a specific character - a dot-), neither with Altsearch.
Hi,
I had a similar problem: How can I replace “a paragraph mark followed by a space” with “just a paragraph mark”?
Im MS Word, this would be: replace "^p " with “^p” (leaving out the quotation marks).
In LibreOffice, I found I can do the same by saying replace “^[ ]” with nothing (leaving out the quotation marks, and enabling regular expressions). Here, ^ means start of new line, and [ ] is a single space character contained between two square brackets.
→ I am not sure why the [ ] brackets are needed to make the search-replace work properly with the space character here, where in the following cases just a normal space will work:
If you want to replace every paragraph mark with a space, you can search for “$”, which is any paragraph mark, and replace it with " " (leaving out the quotation marks, and enabling regular expressions).
If you just want to replace double paragraph marks with a space, then search for “$^” and replace with " " (leaving out the quotation marks, and enabling regular expressions).
Have tried all of the above methods multiple times and none of them ever “finds” the paragraph. Must be missing something.
OMG: Perfect answer!!! Looked all over the web until I found this. Thanks so much. I had “double paragraph marks” all over my 500 page doc. This sentence, from above, solved my problems: “If you just want to replace double paragraph marks with a space, then search for “$^” and replace with " " (leaving out the quotation marks, and enabling regular expressions).”