Den ons 16 mars 2022 kl 21:44 skrev Dave Barton <daveb@libreoffice.org>:
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
character?
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:
https://www.mediafire.com/view/80552jkp3qw6o8x/F%2526R_LO.png/file
Here is a very simplistic file illustrating the <space><CR><LF>
paragraph endings:
https://www.mediafire.com/file/vmixa9r4dhjpc9e/F%2526R_LO.odt/file
Version: 7.3.1.3 (x64) / LibreOffice Community
Build ID: a69ca51ded25f3eefd52d7bf9a5fad8c90b87951
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: default; VCL:
win
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
grateful.
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
Steve
Thanks Steve, but no it's NOT sorted.
You have "Kinda" given me 1/2 a clue.
What does {.1.} mean?
It means ”one or more of the previous character”. Well, it's {1,}, not
{.1.}.
You can also specify a maximum value, like this: {1,5}. This means ”at
least one and not more than 5 of the previous character.
For instance:
[0-9]{3,5}
This means at least three and not more than 5 numerical characters.
Kind regards
Johnny Rosenberg
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.
Dave
--
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
--
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
- Re: [libreoffice-users] Help with find & replace. (continued)
Re: [libreoffice-users] Help with find & replace. · Johnny Rosenberg
Re: [libreoffice-users] Help with find & replace. · Michael D. Setzer II
Re: [libreoffice-users] Help with find & replace. [SOLVED] · Dave Barton
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.