Regular Expressions: Match Characters that Occur Zero or More Times [February 2021]

Tell us what’s happening:

I have searched through the forum for possible explanations and solutions to this challenge but I keep struggling to find something that actually works for me which leads me to think that the challenge may have changed since the solutions and explanations I found were posted.

Right now with the code listed below I am still failing to pass the 16 characters in chewieQuote as well as the match “Aaaaaa…” in chewieQuote requirements to pass this challenge.

Could anyone please help me identify what I am not understanding about this challenge before I move on with the rest of the challenges?

Your code so far

// Only change code below this line
let chewieRegex = /[A*]/; // Change this line
// Only change code above this line

let result = chewieQuote.match(chewieRegex);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.146 Safari/537.36.

Challenge: Match Characters that Occur Zero or More Times

Link to the challenge:

Look carefully at the example that you have been given in the challenge. The structure of your regex shouldn’t be different from the one that was given.
At the moment you have accounted for capital A, what about small a?


Got it. Thanks :pray:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.