Match Characters that Occur Zero or More Times - why are the secondary tests failing?

Tell us what’s happening:
I’m not sure why these tests are failing:

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."

If I use console.log with the above tests swapped into chewieQuote I don’t see any matches in the console…
Your code so far


let chewieQuote = "Aaaaaaaaaaaaaaaarrrgh!";
let chewieRegex = /A*a*/; // Change this line
let result = chewieQuote.match(chewieRegex);
console.log(result);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 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

let chewieQuote = “Aaaaaaaaaaaaaaaarrrgh!”;

let chewieRegex = /Aa*/; // Change this line

let result = chewieQuote.match(chewieRegex);

You are matching A zero or more times and a zero or more times, so you are actually matching everything, you need to be more specific

That worked! thank you :slight_smile: