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
SpadeX
2
Hey You need to try yourself !!!
SpadeX
4
Let us Look this code as …
let chewieQuote = “Aaaaaaaaaaaaaaaarrrgh!”;
let chewieRegex = /A[a]*/; // Change this line
let result = chewieQuote.match(chewieRegex);
This is right but why I should put A[a]*?
SpadeX
6
because a is occurs numbers of times. so add a is use. it’s useful for write programs in Password Pattern matching Programs.
Ohh I understand thank you for helping.
not work, be course not executing four and five tests if i press button [Run the Tests]. But all right. Its bug!
it not work also for:
/a*/i
/[a]*/i