scrimba
Learn Regex
Find One or More Criminals in a Hunt
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

To see this lesson you need to be logged in. Joining Scrimba is free and gives you access to 20+ courses.Sign up
Find One or More Criminals in a Hunt
AboutCommentsNotes
Find One or More Criminals in a Hunt
Expand for more info
index.js
run
preview
console
let crowd = 'P1P2P3P4P5P6CCCP7P8P9';

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

let matchedCriminals = crowd.match(reCriminals);
console.log(matchedCriminals);
Console
index.html
-1:02