Ansewer not working

Tell us what’s happening:

my code looks right, but it`s not going through. I checked for typo mistakes, but everything seems good.
If anyonw knows the prob let me know please

Your code so far

let quoteSample = "3 ablind mice.";
let myRegex = /[^0-9aeiou]ig/; // Change this line
let result = quoteSample.match(myRegex); // 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/85.0.4183.83 Safari/537.36.

Challenge: Match Single Characters Not Specified

Link to the challenge:

I see two problems.

The first one doesn’t affect the test in this specific case, but you added and “a” in the test string. Be careful.

The second is your regex string - /[^0-9aeiou]ig/ - the flags are supposed to go outside the slashes.

When I make that change, your code passes.

1 Like