regex - Regular expression to delete square brackets in MS Word -


i have ms word document full of references in square brackets in format – lorem ipsum [1] dolor sit amet [2], consectetur adipiscing elit [3]. ... proin eu auctor lectus [99].

i'd delete of those, using regular expression, square brackets have special meaning in ms word's regexp. tried [ \[ (0-9){1,} \] ] not produce i'm expecting.

any ideas?

i tried 1 in word 2010 example text , worked me:

(\[[0-9]*\]) 

it searches open square bracket \[, followed numbers [0-9]* , closing square bracket \], brackets escaped \

see office help more detailed information regex in word.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -