I am having trouble with matching the vowels with regex. As far as I can tell, my code should work. Either there is a bug in this challenge or I am missing something simple. Below is my code:
Use a character class with vowels (a, e, i, o, u) in your regex vowelRegex to find all the vowels in the string quoteSample.
Note
Be sure to match both upper- and lowercase vowels.
1 let quoteSample = “Beware of bugs in the above code; I have only proved it correct, not tried it.”;
2 let vowelRegex = /[aeiou]/gi; // Change this line
3 let result = vowelRegex.match(quoteSample); // Change this line
Is anyone else having the same trouble?