^(?!(.*?\s+)?(#|\/\/)).*?\w+\!([ .\)]|$)
^(?!.*?\s+(#|\/\/)\s+)
Filter out comments in shellscript and C++ single-line style.
C-style multiline would be nice to have but extremely complicated and this already covers 80%
?!
Assert nonmatch of
(.*?\s+)?
Optionally a sequence of any characters followed by at least one whitespace