To match all lines containing "money" without "no", use a negative lookbehind:
(?<!no )money
Here are some examples. Note that I added .* Before and after the regular expression anywhere in the line:
re = ".*(?<!no )money.*" "blah blah blah money blah blah blah".matches(re) => true "blah blah blah more money blah blah blah".matches(re) => true "blah blah blah no money blah blah blah".matches(re) => false
source share