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

On 16/03/2022 20:01, Steve Edmonds wrote:

On 17/03/2022 08:34, Dave Barton wrote:
On 16/03/2022 18:27, Brian Barker wrote:
At 16:29 16/03/2022 +0000, Dave Barton wrote:
I am looking for a find & replace solution in Writer, where there is a
blank space as the last character of a paragraph (eg. last word
<space><LF><CR>). In the original OOo and most of the text editors I
use the simple solution that worked/works perfectly is: Find =
<space>$ Replace = $ (Note: I use <space> here to represent a single
space character). This does not work in LO Writer, so I am forced to
fiddle around copying from LO and pasting into AOO, running F&R in
AOO, then copy/paste back again. Any pointers would be welcome.
I'm surprised that exactly what you say works in OpenOffice. Don't you
need to find space-dollar, just as you describe, but to replace with
nothing? Replacing with dollar will surely insert an unwanted dollar

Or have you forgotten to click "Other options" in the Find and Replace
dialogue and to tick "Regular expressions"?

I trust this helps.

Brian Barker
Hi Brian,

After 22 Years of you and I being involved in this project, I genuinely
bow to your superior knowledge in this area. However, I do assure you
that the convoluted LO->AOO->LO  nonsense works for me, exactly as it
did in the days of OOo.

No, I have not forgotten to click "Other options in the Find and Replace
dialogue and to tick "Regular expressions", please see my screen capture:

Here is a very simplistic file illustrating the <space><CR><LF>
paragraph endings:

Version: (x64) / LibreOffice Community
Build ID: a69ca51ded25f3eefd52d7bf9a5fad8c90b87951
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: default; VCL:
Locale: es-ES (en_IE); UI: en-US
Calc: threaded

If you can please show me where I am going wrong, I would be extremely

Dave Barton

May be this is sorted and I have received the emails out of order, but
assuming you just want to remove the trailing space from each line, both
Johnny's and Michael's methods work for me on your sample file.

Find= [:space:]{1,}$
Replace= empty

Find= <space>$
Replace= empty

Use regular expression= checked

Thanks Steve, but no it's NOT sorted.

You have "Kinda" given me 1/2 a clue.

What does {.1.} mean?

In all my researching of regular expressions, I have never encountered
this option. The wonderful thing about *_STANDARDS_* is that there are
such a wide variety of different ones to randomly chose and use.


To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
Privacy Policy:


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.