以下の文字列を考えると、
sentences = "He is a student. She is a teacher. They're students, indeed. Babies sleep much. Tell me the truth. Bell--push it!"
「e」を1つだけ含み、他の母音を含まない「文」の単語を出力するにはどうすればよいですか? したがって、基本的には、次のものが必要です。
彼 彼女 教えて
以下の私のコードでは、私が望むものは得られません:
for word in sentences.split():
if re.search(r"\b[^AEIOUaeiou]*[Ee][^AEIOUaeiou]*\b", word):
print word
助言がありますか?