Specify Exact Number of Matches, Free Online Coding Tutorial

Lesson Summary

In this lesson from freeCodeCamp's Regular Expression course, we take a look at a regex that specifies an exact number of matches. Using this regular expression we can look through the text and if we were, for example, looking for "hah", with the the "a" letter 4 times (haaaah), we can use the regular expression, /ha{4}h/ which allows us to specify the number of patterns it should match (in this case "a"). Buy a Cool Super Hero Sticker for yourself and support us! https://BelieveRationally.com/Shop See this course and many more free online coding courses at https://wewillcode.com Vibe out to some music I created at https://ananomyx.com Check bae's epoxy resin craft store at https://valeryedoesresin.com

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required