Ask Your Question

what is logic of find and replace for paragraph marks [closed]

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

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 reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2020-10-29 14:21:10.840144

1 Answer

Sort by » oldest newest most voted

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

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 +0100 )edit

Question Tools

1 follower


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

Seen: 1,292 times

Last updated: Feb 06 '18