This is the question:
We have strings containing 2 words, like:
["bed time", "red carpet", "god father", "good game"]
The regex should match god father
and good game
because each of them have a word that does not contain the letter e
(god and good), and it should not match bed time
and "red carpet" as both words inside the strings have the letter e
.
I was thinking about /\b[^e]*\b/g
, but it matches all of these strings.