I was doing this exercise and as a result of a typo, thus thinking I didn’t understand the objective, decided to get a hint.
So I wonder if what is proposed in the solution is correct. I mean this:
let quoteSample = "3 blind mice."; let myRegex = /[^aeiou^0-99]/ig; // Change this line let result = quoteSample.match(myRegex); // Change this line
We use two carets ^ both before the vowels and before the numbers. I did a little research and now I am confused as to why we should put two carets. I tried typing only one like so:
and it does exactly the same thing. I wonder if there is any specific reason for that.
Also it is probably better to exclude numbers between 0-9 like so:
as there seems to be no difference.
I wonder if I get it right. Please, someone, correct me. Thanks in advance))