Regex Small problems

Tell us what’s happening:
I could not understand what they wanna say
please help me for this

Your code so far

let quoteSample = "Beware of bugs in the above code; I have only proved it correct, not tried it.";
let vowelRegex = /[a-z|A-Z]/; // Change this line
let result = quoteSample.match(vowelRegex); // Change this line

Your browser information:

Link to the challenge:

Take a look at the instructions again. It wants you to find and match only vowels.

a , e , i , o , u

But you are matching all alphabets.

1 Like

Just a extra note

[a-zA-Z] is more accurate for all alphabets.

1 Like


[ '|', index: 3, input: 'FOO|BAR', groups: undefined ]

That’s because | is a literal character.

1 Like