JavaScript – RegExp g Modifier
In JavaScript RegExp, the “g” modifier specifies a global match, which finds ALL matches, and NOT just the first match.
In JavaScript RegExp, the “g” modifier specifies a global match, which finds ALL matches, and NOT just the first match.
In JavaScript RegExp, the “i” modifier specifies a case-insensitive match.
In JavaScript RegExp, the “m” modifier specifies a multiline match. ^ specifies a match at the start of a string. $ specifies a match at the end.