Match Characters that Occur Zero or More Times doubt

Match Characters that Occur Zero or More Times doubt
0

#1

Tell us what’s happening:

Your code so far


let chewieQuote = "Aaaaaaaaaaaaaaaarrrgh!";
let chewieRegex = /aa*/ig; // 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/68.0.3440.106 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


#2

I agree that it is not clear from the description what is exactly required in this challenge. However, this part is true:

Your regex does not need flags

The other thing I have discovered is that lowercase 'a’s should only be matched if they are preceeded by an uppercase ‘A’.


#3

yes I solved it. it should be Aaa