Regular Expressions: Find More Than the First Match

JavaScript
let twinkleStar = "Twinkle, twinkle, little star";
let starRegex = /Twinkle/gi; // Change this line
let result = twinkleStar.match(starRegex); // Change this line

Source

Also in JavaScript: