Match Characters that Occur Zero or More Times1

Match Characters that Occur Zero or More Times1
0

#1

Tell us what’s happening:

Please help me.

Your code so far


let chewieQuote = "Aaaaaaaaaaaaaaaarrrgh!";
let chewieRegex = /change/; // 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/67.0.3396.99 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

Hey You need to try yourself !!!


#3

I try it but I can do it


#4

Let us Look this code as …

let chewieQuote = “Aaaaaaaaaaaaaaaarrrgh!”;
let chewieRegex = /A[a]*/; // Change this line
let result = chewieQuote.match(chewieRegex);


#5

This is right but why I should put A[a]*?


#6

because a is occurs numbers of times. so add a is use. it’s useful for write programs in Password Pattern matching Programs.


#7

Ohh I understand thank you for helping.


#8

Your welcome Klaudia