[Solved] Find and replace paragraph marks

Writing a book, Automating Document Production - Discuss your special needs here

[Solved] Find and replace paragraph marks

Postby Dragonking » Sun Dec 13, 2009 9:36 pm

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
Dragonking
 
Posts: 2
Joined: Sun Dec 13, 2009 9:01 pm

Re: Find and replace paragraph marks

Postby Villeroy » Sun Dec 13, 2009 10:05 pm

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 12.04, Apache OpenOffice 4.x
User avatar
Villeroy
Volunteer
 
Posts: 17311
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Find and replace paragraph marks

Postby Robert Tucker » Sun Dec 13, 2009 10:47 pm

You may find it easier to install and use AltSearch.
OpenOffice 4.0.0 and LibreOffice 4.x.x on Fedora 20, Ubuntu 13.10, Windows 8.1 Preview (Triple Boot)
User avatar
Robert Tucker
Volunteer
 
Posts: 1230
Joined: Mon Oct 08, 2007 1:34 am
Location: Manchester UK

Re: Find and replace paragraph marks

Postby JohnV » Mon Dec 14, 2009 7:18 am

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.
JohnV
Volunteer
 
Posts: 1509
Joined: Mon Oct 08, 2007 1:32 am
Location: Kentucky, USA

Re: Find and replace paragraph marks

Postby Dragonking » Mon Dec 14, 2009 11:31 pm

Thanks guys - all helpful easiest I found was John V.
Hywel
OpenOffice 3.1.1 on Windows 7
Dragonking
 
Posts: 2
Joined: Sun Dec 13, 2009 9:01 pm

Re: Find and replace paragraph marks

Postby RoryOF » Mon Dec 14, 2009 11:42 pm

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.0.1 on Xubuntu 14.04 and Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 14374
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland


Return to Advanced Uses

Who is online

Users browsing this forum: No registered users and 4 guests