Originally Posted by Jellby
In vim it could be: \[\d\+\]
\[, \]: literal [ and ]
\d: a digit
\+: repeated one or more times.
\d+ is also working (for pagenumbers, for example)
Andy's way also works fine and is fast but can lead to errors (overkill) if you're not conscientious. You really have to be sure that there is nothing else on that line you're looking for ever!