Help me pass this

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:

You can add the extra code, you can not rename the reCriminals variable.

1 Like

Wow! I just read your reply now and tried it again. It works! Thanks and sorry for replying late

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