Match Single Characters Not Specified

Match Single Characters Not Specified
0.0 0

#1

Tell us what’s happening:

Your code so far


let quoteSample = "3 blind mice.";
let myRegex = /^0-9[aeiou]/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/65.0.3325.181 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/match-single-characters-not-specified


#2

Hey nchamoli,

If you put ^0-9 inside of the square brackets then it will work.

let myRegex = /[^0-9aeiou]/ig;