Specify Exact Number of Matches --Help--

Tell us what’s happening:
I am going crazy in this challenge!!
**I tried this code:
let timStr = “Timmmmber”;
let timRegex = /ti{4}ber/; // Change this line
let result = timRegex.test(timStr); but it did’nt work :joy::joy:

Your code so far


let timStr = "Timmmmber";
let timRegex = /[^m]m{4}{?!m}/; // Change this line
let result = timRegex.test(timStr);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/specify-exact-number-of-matches

How are you matching the capital T ?
How are you matching the m?

What do you mean sir, hahahaha, sorry, i’m very confused

I really don’t get it sir, sorry, my head is aching :sob::sob:

Got it sirrr! Thanksss very muchh!!

How do you match the word Tim ?
/Tim/ right?

How do you match the word Timm?
/Tim{2}/ would work right?

So how would you match Timmmm?
And how would you match Timmmmber?

That also worked, thanks ma’am! :heart_eyes:

Thanks! It work! :heart_eyes::heart_eyes::heart_eyes::heart_eyes: