In N++, I am trying to debug lines of code missing the ending ; by searching with regex. My expression is:
Code:
^[\t]*[^(//)(if)(else)(for)(try)(do)\{\}].*?[^;]$
To find: line beginning, all tabs before the code, ignore if //, if, else, for, try, do, { or } appears next, anything in the middle and not having the last character as ;.

After modifying and testing a bit, I believe the problem is that the expression considers one of the tabs at the beginning of the line to test for the character(s) I am trying to avoid, and as such, considers these character(s) as part of the .*?. How do I force the expression to count all tabs before doing
Code:
[^(//)(if)(else)(for)(try)(do)\{\}]
?