JavaScript RegExp global
Description
The global property specifies whether or not the "g" modifier is set.
This property returns true if the "g" modifier is set, otherwise it returns false.
Browser Support
global
is an ECMAScript1 (JavaScriopt 1997) feature.
It is supported in all browsers:
Chrome | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | Yes |
Syntax
RegExpObject.global
Return Value
Type | Description |
---|---|
Boolean | Returns true if the "g" modifier is set, false otherwise |