Answer the question
In order to leave comments, you need to log in
How to compose regex: anything that doesn't contain the word "slovo1, slovo2"??
How to make a rule to select everything that does not contain slovo1 and slovo2?
Answer the question
In order to leave comments, you need to log in
It is possible with the help of negative look forward/backward.
And in other strange ways such as character-by-character checking.
But in general, regular expressions are not designed for complex, intricate logic. And you already have a small database (of two words). It is customary to solve such problems programmatically in two stages:
1) The regular expression finds what is convenient to find exactly the regular expression.
2) And further in the desired programming language:
IF (найденное != "slovo1" AND найденное != "slovo2") .....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question