I would really appreciate some help with this. I am working with a large corpus of text that has been marked-up with XML script and I need to tidy some things up. More specifically, there are several hundred numbers in square brackets (i.e., like '') that I need to delete (brackets included). Each number is different and there can be anything from 3 to 5 digits in these numbers.
The second thing I need to do is to place XML tags around some other pieces of text. These are names in round brackets. I.e., like:
He (Mr. Smith) said...
Which I want to change to:
<annot> (Mr. Smith) </annot> said...'.
How can I perform both of these changes?
I've already tried using Extended Mode and searching for '[.*]', but it returns no hits. When I try the same with RegEx I get lots of hits, but it seems to be searching for each and every square bracket in the corpus.