regex will definitely work for lines starting with // but it's going to be some crazy regex to skip those contained in /**/ – stijnSep 23 '11 at 11:16
Is there a solution for VS 2015? I tried the only given answer but it didn't seem to work and instead would never find anything.. – AloxOct 11 '18 at 13:40
4
This answer is not useful
Show activity on this post.
Lets say, if you need to search all occurrences of an uncommented text "VPEntity" then try using the following regular expression in Find in files after selecting the Use RegEx option
or use this ^((?!//|/*).)*VPEntity*$ or you can tweak it as per your need using any RegEx Builder tool – AzfarApr 25 '12 at 8:09
and for VB.Net code it is ^((?!').)*VPEntity.*$ The .+ at the end is important, otherwise it won't match unless VPEntity is at the end of the line. This could be more robust I'm sure since a ' anywhere before the term in the line will prevent a match, not just the beginning. – MHollisJul 10 '13 at 18:02
regex will definitely work for lines starting with // but it's going to be some crazy regex to skip those contained in /**/ – stijn Sep 23 '11 at 11:16
Is there a solution for VS 2015? I tried the only given answer but it didn't seem to work and instead would never find anything.. – Alox Oct 11 '18 at 13:40