Regex not working

This is my regex-


Why is not working here?
Specify Upper and Lower Number of Matches

You’re only matching the h’s :slight_smile:

Thank you.
But, is not that the constraint?

Change the regex ohRegex to match only 3 to 6 letter h’s in the word “Oh no”.

The instructions are " only 3 to 6 letter h" in the strings being tested. The last test has seven h’s and the regex will still test true but the FCC test fails as it’s expecting “false” instead. (That “only” is annoying.)

1 Like

I see. Thank you.
This one did it-


Glad it helped - you’re welcome.