fork download
  1. import re
  2. str_1= 'hoooowe'
  3. pattern = re.compile(r'([aeiouy])\1{2}')
  4. print([x.group() for x in pattern.finditer(str_1)])
  5.  
Success #stdin #stdout 0.01s 27712KB
stdin
Standard input is empty
stdout
['ooo']