I want to find and delete all double digits inside square brackets. for example: [21][32][43][54][65][76][87]
I thought a wildcard search something like [??] would work, but it doesn't.
does anyone know how to do it?
Wildcard search for [dd], d=digit
Wildcard search for [dd], d=digit
Last edited by MrProgrammer on Fri Jun 21, 2024 3:42 pm, edited 1 time in total.
Reason: Edited topic's subject
Reason: Edited topic's subject
Apache Open Office 4.0.1
Windows 7
Windows 7
Re: wildcard search for single digits
You probably need a regular expression; is this for use in Calc, Writer or what?
Slackware 15 (current) 64 bit
Apache OpenOffice 4.1.16
LibreOffice 26.2.3.2; SlackBuild for 26.2.3 by Eric Hameleers
---------------
I hate this damn computer, I wish that I could sell it.
It won't do what I want it to, Only what I tell it.
Apache OpenOffice 4.1.16
LibreOffice 26.2.3.2; SlackBuild for 26.2.3 by Eric Hameleers
---------------
I hate this damn computer, I wish that I could sell it.
It won't do what I want it to, Only what I tell it.
Re: wildcard search for single digits
the openoffice word document application.
I am copying and editing texts from Wikipedia.
I am copying and editing texts from Wikipedia.
Apache Open Office 4.0.1
Windows 7
Windows 7
Re: wildcard search for single digits
In the Search for box use
Your question says "find and delete all double digits inside square brackets'. It isn't clear if you want to delete just the digits and leave the brackets, or delete digits and brackets.
To delete just the digits, put [] in the Replace with field; to delete digits and brackets, leave it empty. Make sure you open the More Options and check the Regular Expressions box.
Code: Select all
\[[:digit:][:digit:]\]To delete just the digits, put [] in the Replace with field; to delete digits and brackets, leave it empty. Make sure you open the More Options and check the Regular Expressions box.
Slackware 15 (current) 64 bit
Apache OpenOffice 4.1.16
LibreOffice 26.2.3.2; SlackBuild for 26.2.3 by Eric Hameleers
---------------
I hate this damn computer, I wish that I could sell it.
It won't do what I want it to, Only what I tell it.
Apache OpenOffice 4.1.16
LibreOffice 26.2.3.2; SlackBuild for 26.2.3 by Eric Hameleers
---------------
I hate this damn computer, I wish that I could sell it.
It won't do what I want it to, Only what I tell it.
Re: wildcard search for single digits
I want to delete the digits and the brackets - but I don't want to delete square brackets that contain text, only those with double digits in them
Apache Open Office 4.0.1
Windows 7
Windows 7
Re: wildcard search for single digits
also, your solution doesn't work. when I put [] in the search for field it doesn't find anything
Apache Open Office 4.0.1
Windows 7
Windows 7
Re: wildcard search for single digits
When you put [] in the search field after a search using Regular Expressions, you may need to select More Options and Uncheck Regular Expressions.
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
Re: wildcard search for single digits
Well, my answer will do what you want. The search expression I wrote above searches for left square bracket, followed by exactly two digits, followed by right square bracket. If you leave Replace with empty, you'll get what you want.
Read more about Regular Expressions from this web search or serach regular expressions in the offline HELP - F1.
Read more about Regular Expressions from this web search or serach regular expressions in the offline HELP - F1.
Slackware 15 (current) 64 bit
Apache OpenOffice 4.1.16
LibreOffice 26.2.3.2; SlackBuild for 26.2.3 by Eric Hameleers
---------------
I hate this damn computer, I wish that I could sell it.
It won't do what I want it to, Only what I tell it.
Apache OpenOffice 4.1.16
LibreOffice 26.2.3.2; SlackBuild for 26.2.3 by Eric Hameleers
---------------
I hate this damn computer, I wish that I could sell it.
It won't do what I want it to, Only what I tell it.