Find One or More Criminals in a Hunt (I am a little confused on this one)

Tell us what’s happening: How could I found the value of the crowd without looking into the solution?

Your code so far

let crowd = "P1P2P3P4P5P6CCCP7P8P9";

let reCriminals = /./; // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36.

Challenge: Find One or More Criminals in a Hunt

Link to the challenge:

You don’t have to find value of the crowd, you should find the cluster of criminals.
Read the description carefully.
And here’s a tool to play with regex:

1 Like