1const words = ['Art', 'Cheat', 'Cart', 'Jog', 'Fun', 'eat', 'Beat', 'meat', 'Run', 'Smart', 'cat', 'blog'];
2const regex = /^[^aeiou]+(?=[aeiou])/gi; // NOTICE THE i FLAG HERE
3
4for(i = 0; i < words.length; i++)
5 console.log(words[i] + ' > ' + words[i].replace(regex, ''));
6