Tell us what’s happening:
In doing the .text for Regex, it is a simple matter of finding all 25 vowels in a string.
I put a,e,i o & u inside square brackets, but it fails the test.
I even tried reshuffling the order of [aeiou], but to no avail.
What gives?
(OOPS… I RESET the code and didn’t even re-enter everthing . . . I’ve jsut re-typed the stiff in the Code section to what I had.)
The failing tests are 1 & 5: must find all 25 vowels & must not find consonants
Your code so far
let quoteSample = "Beware of bugs in the above code; I have only proved it correct, not tried it.";
let vowelRegex = /[auieo]/gi; // Change this line
let result = vowelRegex.test(quoteSample; // Change this line
Your browser information:
I am using Edge in Win10
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36 Edg/93.0.961.52
Challenge: Match Single Character with Multiple Possibilities
Link to the challenge: