text = "Life is beautiful"
pattern = r"[aeiou]{3,}"
result = re.findall(pattern, text)
print(result)
期望的结果:
['beautiful']
我得到的输出:
['eau']
我试过谷歌搜索等等......我找到了多个答案,但没有一个有效!我是正则表达式的新手,所以也许我遇到了问题,但我不知道如何解决这个问题
我已经尝试过r"\b[abcde]{3,}\b"
仍然没有使用所以请帮忙!