Menu Home

String.matchAll()

Hi everyone – it’s time for another snoozer of an episode of Boring JavaScript! This week, we tackle the String.matchAll() method. Are your tired of using loops to match a substring to a string? Get tired no longer! We’ll show you how to use Regular Expressions to match *every* occurrence of your string in the source string. As a bonus, we’ll show you how to use Named Groups! Turn off that alarm clock and watch the video.