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