On 21 Nov 2013, at 16:22, Ross Ahmed wrote:
What regular expression can I use to find all lines
except "# TODO
I thought ((?!^# TODO.+).+) would work but didn¹t.
Almost correct, needs to be: ^(?!# TODO).+
I.e. we need to first anchor the pattern at BOL and _then_ make the
negative look-ahead assertion.