I need a .NET regular expression that matches anything other than the exact full string match specified. So basically:
^Index$
… is the only exclusion I care about. Strings can start with, finish with or contain "Index", but not match exactly.
The answer must be via the pattern itself, as I am passing an argument to a third-party library and do not have control over the process other than via the Regex pattern.
This should do the trick: