In these lines
some text some text # TODO some text some text
What regular expression can I use to find all lines except "# TODO some text²?
I thought ((?!^# TODO.+).+) would work but didn¹t.
Thanks Ross
On 21 Nov 2013, at 16:22, Ross Ahmed wrote:
What regular expression can I use to find all lines except "# TODO some text²?
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.