[Solved] Find and replace paragraph marks

Writing a book, Automating Document Production - Discuss your special needs here
Post Reply
Dragonking
Posts: 2
Joined: Sun Dec 13, 2009 9:01 pm

[Solved] Find and replace paragraph marks

Post by Dragonking »

I'm trying to use find and replace to repalce commas with carriage returns or paragraph code. Iin Word used ^p to represent pragraph code what is the equivalent in OO.
Thanks

Hywel
Last edited by Hagar Delest on Tue Dec 15, 2009 12:26 am, edited 1 time in total.
Reason: tagged [Solved].
OpenOffice 3.1.1 on Windows 7
User avatar
Villeroy
Volunteer
Posts: 31269
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Find and replace paragraph marks

Post by Villeroy »

Look up the list of regular expressions (regexes) in the F1-help. With regex option $ matches a paragraph mark, \n matches a new line.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
User avatar
Robert Tucker
Volunteer
Posts: 1250
Joined: Mon Oct 08, 2007 1:34 am
Location: Manchester UK

Re: Find and replace paragraph marks

Post by Robert Tucker »

You may find it easier to install and use AltSearch.
LibreOffice 7.x.x on Arch and Fedora.
JohnV
Volunteer
Posts: 1585
Joined: Mon Oct 08, 2007 1:32 am
Location: Kentucky, USA

Re: Find and replace paragraph marks

Post by JohnV »

In Find and Replace:
Search = ,
Replace = \n (a paragraph break when used in the Replace box but a line break when used in the Search box - why, why, why?)
Regular Expressions must be checked.
Dragonking
Posts: 2
Joined: Sun Dec 13, 2009 9:01 pm

Re: Find and replace paragraph marks

Post by Dragonking »

Thanks guys - all helpful easiest I found was John V.
Hywel
OpenOffice 3.1.1 on Windows 7
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Find and replace paragraph marks

Post by RoryOF »

Having solved your immediate problem, you should look at Altsearch extension, as Robert Tucker suggests. This can co-exist with normal find and replace and is more powerful; sometimes too powerful, but they both have their uses.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Post Reply