Regex does not satisfy

Regex does not satisfy
0

#1

Tell us what’s happening:
My regex does not satisfy last condition …please help

Your code so far


let ohStr = "Ohhh no";
let ohRegex = /h{3,6}/;   // Change this line
let result = ohRegex.test(ohStr);

Your browser information:

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

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


#2

You’re not matching against the whole line, so it will find the 3-6 ‘h’ characters also in a line with 100.


#3

so whats the answer please help with ur valuable reply


#4

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/match-beginning-string-patterns