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 <[email protected]>, 
[email protected]
From:                   "." <[email protected]>

> Perfect!  Thank you!
> 
> Peter
> ------------------------------------------------------------------------
> *From:* Eyal Rozenberg [mailto:[email protected]]
> *Subject:* [libreoffice-users] Writer- find and replace a number
> *Date:* Friday, June 30, 2023 at 5:50 PM
> *To:* [email protected], .
> 
> > 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: [email protected]
> 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:[email protected]                            
 mailto:[email protected]
 Guam - Where America's Day Begins                        
 G4L Disk Imaging Project maintainer 
 http://sourceforge.net/projects/g4l/
+------------------------------------------------------------+




-- 
To unsubscribe e-mail to: [email protected]
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

Reply via email to