***I do not understand how the code will give me the result of
sixteen character match of “Aaaaaaaaaaaaaaaa”.
Why does the code have to be:
“forward-slash a a asterisk a forward-slash i”?
why can’t it be:
“forward-slash a a asterisk forward-slash i” in the Regex?
(sorry about the type-out of the code as it wont let me use the asterisk symbol)
To figure out the answer, you have to use the hint because this is
not discussed in the lesson.
Your code so far
let chewieQuote = "Aaaaaaaaaaaaaaaarrrgh!";
let chewieRegex = /aa*a/i; // 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/74.0.3729.169 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