Specify Upper and Lower Number of Matches problem

Tell us what’s happening:

I’ve used a regex to check if this works, and I was able to match all of the use cases. It still fails when I click run tests though. What am I missing?


Your code so far

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:

To anyone coming here, it was the global flag, that messed the entire thing up lol