Reputation: 435
Using Visual Studio 2013, how would I find all occurrences of Sheet but not if it is MVC.Sheet?
I cannot figure out look behind.
This works to find ones that are not followed by .Index: Sheet(?!.Index)
Upvotes: 6
Views: 2576
Reputation: 41838
Working in VS2013 (see screenshot):
(?<!MVC\.)Sheet
(?<!MVC\.)
lookbehind asserts that what precedesis not MVC.
Sheet
matches Sheet
Reference
Upvotes: 12