Hi @lefrenchcooper!
Screenshots are very hard to read. For future posts can you please use the ask for help button in the challenge.
What regex challenge is this? Please provide a link to the challenge in the body of your message so we can see the assignment. Thanks!
Hint: compare the original string to the result and see if you’re excluding any characters that should not be excluded.
let quoteSample = "3 blind mice.";
let myRegex = /[^0-9 aeiou]/ig; // Change this line
let result = quoteSample.match(myRegex); // Change this line
console.log(quoteSample)
console.log(result.join(''))
//Result
3 blind mice.
blndmc.
I WOULD LIKE TO KNOW WHAT IM DOING WRONG
let myRegex = /[^0-9 aeiou]/ig;
let quoteSample = "3 blind mice.";
let myRegex = /[^0-9 aeiou]/ig; // Change this line
let result = quoteSample.match(myRegex); // Change this line
console.log(result)
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36
.
Challenge: Match Single Characters Not Specified
Link to the challenge:
Remove the space between 9
and a
, It should work…
Thanks removing the space did the trick