Regular Expressions - Specify Exact Number of Matches

Tell us what’s happening:
Describe your issue in detail here.
why isn’t this working ???
Is this because of the period ?
why?!!!
Your code so far

let timStr = "Timmmmmmber";
let timRegex = /tim{4}.+/i; // Change this line
let result = timRegex.test(timStr);
console.log(result)

Your browser information:

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

Challenge: Regular Expressions - Specify Exact Number of Matches

Link to the challenge:

this pattern will match any case t, then any case i, then any case mmmm
then any character 1 or more times.

But they want you to match Timmmmber

1 Like