PDA

View Full Version : [SOLVED:] Need help with Find and Replace



rsrasc
08-02-2023, 04:42 AM
HI all,

i have a document with numbers in bracket like this:

[241:1]
[290:11]

Also, I have numbers in brackets without the semicolon

[243]
[250]

Therefore, and with your help I would like to be able to delete or remove the brackets and the numbers without the semicolon only.

Can someone assist me?

Thanks!

Aussiebear
08-02-2023, 02:18 PM
On a sample document try the following by doing a Find and Replace

Find: \[[0-9]{1,6}\]

Replace: " "

This came from the following website https://cybertext.wordpress.com/2020/01/29/word-find-whole-numbers-inside-square-brackets-or-parentheses/

You can change the value 6 to 3 if the numbers only contain a maximum of 3 digits.

rsrasc
08-03-2023, 06:46 AM
Hello Aussiebear, thank you very much for the code. Didn't have time until now to tested.

Working great! Much appreciated!

Thanks!