This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Search only between uncommented lines (NCLOC - Non-Comment Lines Of Code): | |
First solution matches "keyWord" which is not commented with single line comment // | |
^*(?<!\/\/.*)keyWord // this uses negative lookbehind | |
or another solution without lookbehind for regex engines, that does not support it: | |
^[^//]*keyWord |