Ask Your Question

what is logic of find and replace for paragraph marks

asked 2018-02-06 02:04:12 +0200

catbill gravatar image

I am not very familiar with find and replace in Writer. I would like to replace the sequence tab-paragraph return with just a paragraph return.

Using Alternative Find and Replace, the search criteria are \t$

I tried replacing that with \p but an additional paragraph mark gets added. I don't understand why. I thought I was replacing a tab followed by a paragraph mark with just a paragraph mark. Why is there an extra paragraph mark?

Hope this is clear.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2018-02-06 02:46:14 +0200

librebel gravatar image

Hello @catbill,

To replace tab-return with just a paragraph return, you correctly entered \t$ into the search field, but the replace field should be \n in this case.

"\n in the Replace text box stands for a paragraph break that can be entered with the Enter or Return key."

Please see LibreOffice Help - List of Regular Expressions

With Regards, lib

edit flag offensive delete link more


Lib, I had looked at the list of regular expressions but it takes some getting used to. Thanks for the clear explanation.

catbill gravatar imagecatbill ( 2018-02-09 19:36:15 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-02-06 02:04:12 +0200

Seen: 856 times

Last updated: Feb 06 '18