We will be migrating from Ask to Discourse on the first week of August, read the details here

# Is there an easy way to find a paragraph mark and replace it with a line ending or a space. [closed]

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.

edit retag reopen merge delete

### Closed for the following reason the question is answered, right answer was accepted by Alex Kemp close date 2016-03-03 22:33:56.082892

Sort by » oldest newest most voted

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). more ## Comments Have tried all of the above methods multiple times and none of them ever "finds" the paragraph. Must be missing something. ( 2015-01-04 12:43:56 +0200 )edit 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)."

( 2016-03-31 17:40:13 +0200 )edit

@larrybradley, you must check "Regular expressions" in search and replace dialog.

( 2016-08-13 22:37:05 +0200 )edit

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

more

1

You need to use the AltSearch extension for this type of search / replace.

( 2014-04-20 13:03:50 +0200 )edit

Hello. I couldn't do this (replace a praragraph mark only when it follows a specific character - a dot-), neither with Altsearch.

( 2020-06-26 06:15:46 +0200 )edit

## Stats

Seen: 38,048 times

Last updated: Sep 19 '14