Tell us what’s happening:
I want to now if is there a way to avoid the “ha” and “ah” from the regular expression bellow, cause I don’t reallly know how to apply this method of specifing the lower number of matches in another situation. An example of this RegExp in another situation would be awesome thanks.
Your code so far
let haStr = "Hazzzzah";
let haRegex = /ha(z{4,}ah)/i; // Change this line
let result = haRegex.test(haStr);
console.log(result)
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36
.
Challenge: Specify Only the Lower Number of Matches
Link to the challenge: