RegExp.global

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.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.