Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Regular Expressions: Find More Than the First Match

let twinkleStar = "Twinkle, twinkle, little star";
let starRegex = /Twinkle/gi; // Change this line
let result = twinkleStar.match(starRegex); // Change this line
 
PREVIOUS NEXT
Tagged: #Regular #Find #More #Than #First #Match
ADD COMMENT
Topic
Name
5+8 =