Regular Expressions - Match Characters that Occur Zero or More Times

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

I found this one litle triky at the wording: but this is for me
the way to breakdown this request:

The 0 in my original regular expression was just a literal digit 0. ( I use this ** /A0*a/**) but In the context of the challenge, we needed to match the letter “a”, not the digit “0”. That’s why we need to use the a* quantifier instead of the 0* quantifier.
so we use just this /Aa*/

// Only change code below this line

let chewieRegex = /Aa*/;// Change this line
// Only change code above this line

let result = chewieQuote.match(chewieRegex);
console.log(result)

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0

Challenge: Regular Expressions - Match Characters that Occur Zero or More Times

Link to the challenge:

  • it means “zero or more of 0”
  • it means “zero or more a”
  • this would match string such as this “A0000a”

hope this makes sense, happy learning :slight_smile:

correct!! the code was solve; but since I’m a not native English speaker; the wording was tricky and…I shared my Point of VIew

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