Find if the sentence does not contains specific words
问题 i have a regular expression which find if the sentence s contains specific words my query is: (?=.*hello)(?=.*hi)(?=.*hey).* but now i want to check if my sentence does not contains this words i have tried: (?=.*((?!hello).))(?=.*((?!hi).))(?=.*((?!hey).)).* but it does not works how should i build my query? Example: this query should return true when my sentence is: hi, how are you? and must return false when my sentence is: hi hello hey .. thanks in advance, 回答1: If the problem is to match