Regex-Match Single characters with multiple possibilities

let quoteSample = "Beware of bugs in the above code; I have only proved it correct, not tried it.";
let vowelRegex = /[a,e,i,o,u]/gi; // Change this line
let result = quoteSample.match(vowelRegex); // Change this line

When I d’ont type ’ i ’
This is the error:Your regex vowelRegex should use the case insensitive flag.
Which I understand.
When I type ’ i ’

This is the error:You should find all 25 vowels.

problem is in second line .change your code withvowelRegex = /[aeiou]/gi;.

Character classes (the technical term for stuff inside square brackets in a regex) don’t use commas to separate items. If you wanted to match all q’s x’s, and z’s for example, you’d use [qxz], not [q,x,z]. Your character class is also matching the comma in the string, which is resulting in 26 matches, not 25.