Find One or More Criminals in a Hunt
Problem Explanation
A group of criminals escaped from jail and ran away, but you don’t know how many. However, you do know that they stay close together when they are around other people. You are responsible for finding all of the criminals at once.
Hints
Hint 1
Are you surrounding your regexp in slashes?
let regexp = /t.[a-z]*t/;
Hint 2
Are you using the ‘+’ flag in your regexp?
let regexp = /E+/; // returns E, EE, EEE patterns
Solutions
Solution 1 (Click to Show/Hide)
let reCriminals = /C+/; // Change this line