[TxMt] Re: regular expression to find all lines except one

Allan Odgaard mailinglist at textmate.org
Fri Nov 22 02:10:02 UTC 2013

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.

More information about the textmate mailing list