We're currently migrating from Ask to Discourse, read the details here

Ask Your Question

Find & Replace doesn't find paragraph marks [closed]

asked 2012-06-06 14:22:32 +0200

Prashant gravatar image

updated 2020-08-16 13:02:51 +0200

Alex Kemp gravatar image

I can find empty paragraphs with ^$ but there's no way to replace a single paragraph break with two before pasting stuff online to our Web site. Word lets you do this with ^p and AltSearch works with \p but the Find & Replace dialog in LibreOffice Writer finds the character p followed by a space instead of a paragraph mark/break.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-10-16 22:11:47.122124

2 Answers

Sort by » oldest newest most voted

answered 2012-06-06 15:35:06 +0200

Pedro gravatar image
edit flag offensive delete link more



To expand on this answer, if you do a regular expression search for ^$ and replace it with \n\n that should work.

w_whalley gravatar imagew_whalley ( 2012-06-06 15:46:01 +0200 )edit

answered 2012-06-29 13:51:49 +0200

Same question. Regular expressions enabled, tried ^$, \p and so forth. Does not work.

^$ would only work if it was a blank line -- two paragraph returns, right? Need to select the "end of paragraph" non printing character ¶ -- (U+00B6)

edit flag offensive delete link more



Do you want to add a blank paragraph after of each non-empty paragraph? Find .$ (dot-dollar) Replace with &\n (ampersand-backslash-n)

JohnSUN gravatar imageJohnSUN ( 2012-06-30 21:38:09 +0200 )edit

Question Tools



Asked: 2012-06-06 14:22:32 +0200

Seen: 9,562 times

Last updated: Jun 29 '12