Search/replace for end of lines

I don’t use it often, but today search/replace for end of lines with regular expressions selected is not working. What can anyone tell me?

Use extension alt-search and be aware of difference between line-break and paragraph-break.
Edit: Link added

2 Likes

$ in the Find field.

1 Like

Built-in Find & Replace is limited to contents of a single paragraph. Paragraph breaks lie between paragraphs; therefore they cannot be matched in built-in F&R.

Regarding paragraph contents, regexp symbols ^ and $ stand for the start and end of the paragraph buffer. They are “pure” locations and can’t be removed. The only exception is regexp ^$ which represent an empty paragraph, including its paragraph break. An empty paragraph can be replaced by “nothing”, thus suppressing it.

Give us more details on your purpose and we’ll be able to suggest an adequate regexp. For any other manipulation involving several paragraphs, i.e. a search target spanning a paragraph break, install and use AltSearch extension.
And mention OS name, exact LO version and save format.

1 Like