Regular Expressions - Find One or More Criminals in a Hunt

Although, i know full well this is the right answer BUT the instruction ask for a greedy regex and i thought there is no way you can write a greedy regex without ? quantifier

Your code so far

let reCriminals = /C+/; // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36

Challenge: Regular Expressions - Find One or More Criminals in a Hunt

Link to the challenge:

According to the below, regexps are greedy by default

my bad, i was making reference to using ? quantifier as lazy regex. Thanks a lot for the sudden realization

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