Specify Only the Lower Number of Matches, please help

Isn’t This code right

let haStr = "Hazzzzah";
let haRegex = /Haz{4,}az/; // Change this line
let result = haRegex.test(haStr);

Can you post a link to the challenge.

You got a spelling mistake in your RegEx.

Did you solve the challenge? Like Jagaya says here you have a spelling mistake in your RegEx

let haRegex = /Haz{4,}az/;

Check the spelling, compare it with haStr are the spellings same?

let haStr = "Hazzzzah";

I ask for a hint and i got a solution i did exactly what the solution says
solution

let haStr = "Hazzzzah";
let haRegex = /Haz{4,}ah/; // Change this line
let result = haRegex.test(haStr);

my challenge

let haStr = "Hazzzzah";
let haRegex = /Haz{4,}az/; // Change this line
let result = haRegex.test(haStr);

check the last character of your regex, you have a z there

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.