Tell us what’s happening:
Your code so far
let chewieQuote = "Aaaaaaaaaaaaaaaarrrgh!";
let chewieRegex = /aa*/gi; // Change this line
let result = chewieQuote.match(chewieRegex);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-zero-or-more-times
ILM
2
Your regex does not need flags,
so remove flags
also, how to make it match the chewie quote and not any of the others, that are full of 'a’s?
well, if you don’t use the i flag you could use lower and upper case letters to make sure that it matches only the desired things
Please give me a regex for this
ILM
4
no, I will not give you a regex, I laredy gave you an hint
you could use lower and upper case letters to make sure that it matches only the desired things