Tell us what’s happening:
My regex is not fulfilling this test:
Your regex should match three criminals (
CCC
) in the stringP1P5P4CCCcP2P6P3
.
Your code so far
let reCriminals = /[a-z]*C+[a-z]*/g; // Change this line
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Safari/605.1.15
Challenge: Find One or More Criminals in a Hunt
Link to the challenge: