fork download
  1. import re
  2. vowelRegex = re.compile(r'(?!e[ds]\b)[aeiou]', re.I)
  3. print(vowelRegex.findall('RoboCoped eatsed babyes food. BABY FOOD.'))
  4. print(vowelRegex.sub(r'(\g<0>)', 'RoboCoped eatsed babyes food. BABY FOOD.'))
Success #stdin #stdout 0.03s 9816KB
stdin
Standard input is empty
stdout
['o', 'o', 'o', 'e', 'a', 'a', 'o', 'o', 'A', 'O', 'O']
R(o)b(o)C(o)ped (e)(a)tsed b(a)byes f(o)(o)d. B(A)BY F(O)(O)D.