Ask Your Question

Find & Replace doesn't find paragraph marks

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

Prashant gravatar image

updated 2013-10-26 15:20:53 +0200

manj_k 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 close merge delete

2 answers

Sort by » oldest newest most voted

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

Pedro gravatar image

Did you check the option for Regular Expressions?

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
Login/Signup to Answer

Question Tools



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

Seen: 4,967 times

Last updated: Jun 29 '12