Date: prev next · Thread: first prev next last
2020 Archives by date, by thread · List index


Folks,

My apologies.

Had I checked the URL to the OOo WEB page about regular expressions first, I would have found my answer.

There, and I tested this so I know it works, it says that ^$ matches any empty paragraph. Replacing it with nothing removes them.

Mr. Edmonds, thank you for your suggestion, maybe the solution from OOo will help you.


On 2020-03-26 18:22, Steve Edmonds wrote:
Hi. The way I have done this (because I couldn't work out another way) is;
check regular expressions

Find $
Replace (*) this sequence of 3 characters can be anything but should not
occur in your text.

Find \(\*\)\(\*\)
Replace \n

Find \(\*\)
Replace \n

On 27/03/2020 10:34, Udvarias Ur wrote:
Folks,

These 2 are the same solution.

It works fine when a 'find and replace' is preformed on a single
paragraph mark, i.e. hard return, appears as ¶,is replaced with
anything else.

I have a similar problem.

I sometimes, especially when copying and pasting text from a WEB page,
find 2 hard returns one after another.

How can I search for double hard returns, ¶¶, and replace them with
single hard returns, ¶.


On 2020-03-26 15:56, Steve Edmonds wrote:
Hi.
From
https://ask.libreoffice.org/en/question/32879/is-there-an-easy-way-to-find-a-paragraph-mark-and-replace-it-with-a-line-ending-or-a-space/

referring to
https://wiki.openoffice.org/wiki/Documentation/How_Tos/Regular_Expressions_in_Writer#Tabs.2C_newlines.2C_paragraphs_.5Ct_.5Cn_.24


Tick "Regular expressions" in "Search and replace" dialog. Search for $,
replace with space.

In your case replace with \t

steve

On 27/03/2020 07:01, procuste piziocampte wrote:
Im' using Version: 6.4.1.1 on linux opensuse:
In a writer document I woule like to find paragraph breaks  (A
paragraph
break that can be entered with the Enter or Return key )with a tab
so following the instructions here
file:///usr/lib64/libreoffice/help/en-US/text/shared/01/02100001.html?&DbPAR=WRITER&System=UNIX

I should perform a find/replace:
in find \n and in replace \t
or if it doesnt works
in find \n and in replace \n and then in find \n and in replace \t
checking the regular expression box (only that one)
but it doesn't work, writer gives me the "search key not found"
how can I solve??
manythanks


--
Udvarias Ur

This letter was generated and sent from Thunderbird 60.5.1 on Ubuntu Linux 16.04.6 LTS.

Cette lettre a été générée et envoyée à partir de Thunderbird 60.5.1 sur Ubuntu Linux 16.04.6 LTS.


--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.