What is the right solution to this problem, please. My code isn’t passing it.
let crowd = "P1P2P3P4P5P6CCCP7P8P9";
let criminalRegex= /C+/;
let result = crowd.match(criminalRegex);
console.log(result);**
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36
Challenge: Find One or More Criminals in a Hunt
Link to the challenge: