let quoteSample = "Catch me i You can.";
let unRegex = /[aeiou]/ig; // Change this line
let result = unRegex.test(quoteSample); // Change this line
error is last two requirements are not getting fullfilled
Your regex unRegex should not match “There is a bug in my code.”
Your regex unRegex should not match “Catch me if you can.”
i dont know where is the mistake if anyone can guide me .
i updated the link @RandellDawson
well i was trying to match it with these instruction
Use a character class with vowels (a, e, i, o, u) in your regex vowelRegex to find all the vowels in the string quoteSample.
but i got it now thank you for responding:)
Complete the regex unRegex so that it matches the strings "run" , "sun" , "fun" , "pun" , "nun" , and "bun" . Your regex should use the wildcard character.
Your current regular expression will result in true if there is a vowel in the string. That is not what you are asked to match.
@Maria_16 You still seem to be mixing up two completely different challenges.
The code you have posted above is for the challenge Match Anything with Wildcard PeriodPassed challenge. There is nothing in the instructions about using a character class with vowels (a, e, i, o, u) in that challenge.