in reply to Re: regexp exclude a stringin thread regexp exclude a string
And if I understand his question correctly, this will fail if he has "this is green and yellow" on one line in a file and "green red blue" on the next one.