Create a regex chewieRegex that uses the * character to match all the upper and lower"a" characters in chewieQuote. Your regex does not need flags, and it should not match any of the other quotes.
My code:
let chewieQuote = "Aaaaaaaaaaaaaaaarrrgh!";
let chewieRegex = /aA*/gi; // Change this line
let result = chewieQuote.match(chewieRegex);
Result:
[YES] Your regex chewieRegex should use the * character to match zero or more a characters.
[YES] Your regex chewieRegex should match 16 characters.
[YES] Your regex should match “Aaaaaaaaaaaaaaaa”.
[NO] Your regex should not match any characters in “He made a fair move. Screaming about it can’t help you.”
[NO] Your regex should not match any characters in “Let him have it. It’s not wise to upset a Wookiee.”
// running test
Your regex should not match any characters in “He made a fair move. Screaming about it can't help you.”
Your regex should not match any characters in “Let him have it. It's not wise to upset a Wookiee.”
// tests completed
… I have no idea where the last two cases are coming from. Is this a bug from a previous version of this question?