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
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