Find More Than the First Match
So far, you have only been able to extract or search a pattern once.
let testStr = "Repeat, Repeat, Repeat";
let ourRegex = /Repeat/;
testStr.match(ourRegex);
So far, you have only been able to extract or search a pattern once.
let testStr = "Repeat, Repeat, Repeat";
let ourRegex = /Repeat/;
testStr.match(ourRegex);
Hi there and welcome to our community!
If you need help with a particular challenge, the best option is to click on the Get Help button and then Ask for Help.
This will create a forum post which includes your full code, a direct link to the challenge and an opportunity for you to describe, in your own words, what you are having trouble with.