matching a line that doesn't contain specific text with regular expressions
You need a negative lookahead assertion - something like this:
/^one two(?!.*three)/m
Here's a tutorial on lookahead/lookbehind assertions
Note: I've added the 'm' modifier so that ^ matches the start of a line rather than the start of the whole string.
^one two(?!.*three)