Whether or not the "g" flag is used with the regular expression.
Property of RegExp
Read-only
Description
global is a property of an individual regular expression object.
The value of global is true if the "g" flag was used; otherwise, false. The "g" flag indicates that the regular expression should be tested against all possible matches in a string.
You cannot change this property directly. However, calling the RegExp.compile method changes the value of this property.