Match Characters that Occur Zero or More Times ? tired

Match Characters that Occur Zero or More Times ? tired
0

#1

Tell us what’s happening:
i am tired half an hour stuck in this easy challenge
the compiler said :
Your regex should not match any characters in “He made a fair move. Screaming about it can&#39t help you.”
Your regex should not match any characters in “Let him have it. It&#39s not wise to upset a Wookiee.”

Your code so far


let chewieQuote = "Aaaaaaaaaaaaaaaarrrgh!";
let chewieRegex = /A*/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.75 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

Stick your regex in the app here www.regextester.com
And then paste the test string to see what the match gives

The website allows you to click on your regex to get a short statment explaining each part so it should help you move towards a solution.

Also the forum has many hints on this specific exercise that you could look up if you’ve given up trying on your own.