p.s. I've just seen Eyal Rozenberg's answer which is quite similar.

Aside from [0-9]+ vs [:digit:] there is one significant difference, the "+"
at the end.

Using Eyal's method any consecutive string of digits is replaced with
whatever is in "Replace:".

Using the method I offered each individual digit is replaced by what is in
the "Replace:" field.

That is not because of [0-9] vs [:digit:] but because of the "+".

Pick whichever meets your needs best.

On Fri, Jun 30, 2023 at 6:04 PM Alan B <abo...@gmail.com> wrote:

> Regular expressions (regex) are a challenge to get your mind around. Your
> need seems to be straight forward so there's not a lot to absorb to use
> regex for this case.
>
> Open the "Find & Replace" dialog.
>
> In the "Find:" field enter "[:digit:]" without the quotes.
>
> In the "Replace:" field put whatever you'd like to replace EACH digit with.
>
> Tick "Regular expressions" in "Other options".
>
> The regex given will find each individual digit no matter what it is and
> replace it with whatever is in the "Replace:" field.
>
> In essence, it is giving that wildcard you want for numbers.
>
> If you want to experiment some with regex, branching out from the above,
> check the LO regular expression webpage.
> http://help.libreoffice.org/6.2/en-US/text/shared/01/02100001.html
>
> I hope this is what you are looking for.
>
> On Fri, Jun 30, 2023 at 5:27 PM . <s...@shch262.com> 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+unsubscr...@global.libreoffice.org
>> Problems?
>> http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
>> Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
>> List archive: http://listarchives.libreoffice.org/global/users/
>> Privacy Policy: http://www.documentfoundation.org/privacy
>>
>
>
> --
> Alan Boba
> CISSP, CCENT, ITIL v3 Foundations 2011
>
>

-- 
Alan Boba
CISSP, CCENT, ITIL v3 Foundations 2011

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

Reply via email to