JavaScript » RegExp » global


This property reflects whether the 'g' flag was used to match a regular expression globally in a string, or just the first occurrence of it. Its value is true if the 'g' flag was used and false if not. Note that this property is read-only but that calling the compile method does alter it.