Match Single Character with Multiple Possibilities - Need Help Please

Match Single Character with Multiple Possibilities - Need Help Please
0.0 0

#1

Tell us what’s happening:
I have written you can see now . I used the vowels and also the global & insensitive flag but still can’t figure out how to find all of the 25 vowels & Your regex should not match any consonants.
Need help thanks.

Your code so far


let quoteSample = "Beware of bugs in the above code; I have only proved it correct, not tried it.";
let vowelRegex = /[aeiou]/gi; // Change this line
let result = vowelRegex.length; // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/match-single-character-with-multiple-possibilities


#2

If you take a closer look at the example the challenge provides you will see a line that does a call to match function. That is what you should be using to get the result. (Not length)


#3

Right … I saw the 25 vowels so i thought it was length. Ok got it . Thanks