I have a whole bunch of text. In between (random) there is something like [7] or [23] (citation references). I just want to remove these references, where ever they occur and keep the text.
If if do something like [\\[0-9\\]] it takes each bracket separately and the number separately. How can I match the whole thing as one group and remove it from the whole text?
Thanks
The regex
\\[[0-9]+\\]should work for your case (any number of digits between square brackets).