How can I find all my array usages that have an explicit integer as index?
Example:
const int CON = 42;
int[] arr = new int[100];
arr[34] = 12;
arr[CON] = 13;
// need to find: [100], [34]
// not : [], [CON]
This seems to work with C# Regex and Replace but not in VS 2010 search:
\[\d+\]
(I'm sure I formulated the title awkwardly or something. Sorry.)