I solved the challenge but have a question.
The challenge: Match all the letters in the string quoteSample.
My solution:
let quoteSample = "The quick brown fox jumps over the lazy dog.";
let alphabetRegex = /[a-z]/ig; // Change this line
let result = quoteSample.match(alphabetRegex); // Change this line
My question:
let alphabetRegex = /[a-z]./;
How come this throws an error? Doesn’t the dot match all letter cases?