Q:

Regex to filter only unmatching string

I need to make a regex for a mylyn task repo connector to select only issues that do not have the label with the string needs info
I'm afraid I have zero experience with regex, so have tried each of the following with equally zero results:
(^needs info)    <- filters for only *has* needs info label
^(needs info)    <- filters for only *has* needs info label
(?!needs info)   <- does nothing
^(?!needs info)  <- does nothing

Any help much appreciated.

A:

Put .* inside the negative lookahead.
^(?!.*\bneeds info\b).+

The above regex would match all the lines which don't have the string needs info.
DEMO

