fork download
  1. #
  2. import re
  3.  
  4. text = "Obviously, the queen is courageous and gracious."
  5. pattern = r"\b(?=[a-z]*[aeiou]{3})[a-z]+\b"
  6. result = re.findall(pattern, text, re.I)
  7. print(result)
Success #stdin #stdout 0.02s 9568KB
stdin
Standard input is empty
stdout
['Obviously', 'queen', 'courageous', 'gracious']