Ask Your Question
0

How to search and replace carriage return with space [closed]

asked 2017-03-04 22:32:50 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

in Libre Office

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-06 22:05:54.260983

2 Answers

Sort by » oldest newest most voted
0

answered 2017-03-04 23:14:26 +0100

Lupp gravatar image

updated 2017-03-04 23:15:02 +0100

Suppose you mean switching to new paragraph. You can only replace all the paragraph shifts in a complete selection.
To do so
- select the range
- open 'Find & Replace'
- enter $ (nothing else) into 'Search'
- enter the replacement (in your case a space) into 'Replace'
- Check if options 'Current selection only' and 'Regular expressions' are checked
- hitt 'OK'

If your question was about hard line breaks: You find them with \n and you can combine this with other RegEx elements.

edit flag offensive delete link more
0

answered 2017-06-14 13:15:44 +0100

Jim McKane gravatar image

I am using ver. 5.2.7.2 and cannot make this work at all. In a file like this........

ANDERSON, ANDREWS ARMSTRONG BALLANTINE BARBOUR BARBOURYOUNG BRADLEY BROWN CAMPBELL CARSON CHADWICK CHRISTIE CLARKE COCHRANE COLEHAMILTON

I am trying to add a comma at the end of each line

edit flag offensive delete link more

Comments

Did you notice
0 - that this is a different question?
1 - that there isn't a well defined thing like "end of the line" in word processors?
There are automatic line breaks, hard line breaks, and paragraph breaks.
2 - that you cannot replace automatic or hard linebreaks in the described way but only paragraph breaks?
3 - that you have to enter a comma (probably followed by a space) into 'Replace'?

Lupp gravatar imageLupp ( 2017-06-14 13:33:45 +0100 )edit

Question Tools

1 follower

Stats

Asked: 2017-03-04 22:32:50 +0100

Seen: 4,448 times

Last updated: Jun 14 '17