Didn't specify if number meant just digits, so did test with
[[:digit:]\|"$"\"."\","]
That replaces digits and "$.,", but would replace them appearing
elsewhere as well. Might also add "+-" as well.
Also, in my test made font a mono font, since replacing digits with
spaces would shift alignment.
An example of the data might have been useful to come with a
more complete answer.
On 30 Jun 2023 at 17:54, . wrote:
Date sent: Fri, 30 Jun 2023 17:54:26 -0400
Subject: Re: [libreoffice-users] Writer- find and
replace a number
To: Eyal Rozenberg <eyalroz1@gmx.com>,
users@global.libreoffice.org
From: "." <SE@SHCH262.com>
Perfect! Thank you!
Peter
------------------------------------------------------------------------
*From:* Eyal Rozenberg [mailto:eyalroz1@gmx.com]
*Subject:* [libreoffice-users] Writer- find and replace a number
*Date:* Friday, June 30, 2023 at 5:50 PM
*To:* users@global.libreoffice.org, .
1. Open the "Find and Replace" dialog (e.g. with Ctrl+H).
2. Check the "Regular Expressions" checkbox in the lower part of the
dialog
3. Enter a regular expression which will match numbers: [0-9]+ (with
the plus sign!).
4. Enter the replacement text you want (you can use $1 in the
replacement string to get the number that was matched)
5. Press "Find Next" and then possibly "Replace" or "Replace All" as
appropriate
What does the regexp mean? It means "One or more occurrences of a
character from the sequence 0-9". For more about regular expressions,
see for example: https://www.sitepoint.com/learn-regex/
Hope that helped,
Eyal
On 01/07/2023 0:26, . wrote:
How do I find and replace all numbers in Writer?
What I'm trying to do is get rid of the numbers in a list.
I have NO idea what they're talking about "regular expressions" and
can't figure out a wild card for numbers.
Any ideas?
Thanks,
Peter
--
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
+------------------------------------------------------------+
Michael D. Setzer II - Computer Science Instructor
(Retired)
mailto:mikes@guam.net
mailto:msetzerii@gmail.com
Guam - Where America's Day Begins
G4L Disk Imaging Project maintainer
http://sourceforge.net/projects/g4l/
+------------------------------------------------------------+
--
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.