Tell us what’s happening:
I am getting the following errors after writing the correct code.
Get Help
Your regex alphabetRegex should match 35 items.
Your regex alphabetRegex should use the global flag.
Your regex alphabetRegex should use the case insensitive flag.
let quoteSample = “The quick brown fox jumps over the lazy dog.”;
let alphabetRegex = /[a-z]gi/; // Change this line
let result = quoteSample.match(alphabetRegex); // Change this line
// running tests Your regex
alphabetRegex
should match 35 items. Your regex
alphabetRegex
should use the global flag. Your regex
alphabetRegex
should use the case insensitive flag.
Your code so far
let quoteSample = "The quick brown fox jumps over the lazy dog.";
let alphabetRegex = /[a-z]gi/; // Change this line
let result = quoteSample.match(alphabetRegex); // 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/88.0.4324.104 Safari/537.36.
Challenge: Match Letters of the Alphabet
Link to the challenge:
thanks for helping me out.