I was trying to search for ".IsSet", but not "DocumentState.IsSet", in VS 2008 using regular expression search. How do I compose the regular expression?
Thanks!
I was trying to search for ".IsSet", but not "DocumentState.IsSet", in VS 2008 using regular expression search. How do I compose the regular expression?
Thanks!
~(DocumentState)\.IsSet
will match all .IsSet
instances that do not follow DocumentState
. To match exactly .IsSet
but not .IsSetFoo
, you can either use
~(DocumentState)\.IsSet>
or check the Match whole word option.
See Regular Expressions (Visual Studio) for a list of regular expression tokens supported in the Visual Studio search.
I don't know if you can with the VS Search, but you can