JavaScript RegExp Object
The g modifier is used to perform a global match (find all matches rather than stopping after the first match).
![]()
The g modifier is supported in all major browsers.
Do a global search for "is":
The marked text below shows where the expression gets a match:
Do a global, case-insensitive search for "is":
The marked text below shows where the expression gets a match:
JavaScript RegExp Object
Your message has been sent to W3Schools.