Name
RegExp.global — whether a regular expression matches globally
Availability
JavaScript 1.2; JScript 5.5; ECMAScript v3
Synopsis
regexp
.global
Description
global
is a read-only boolean property of RegExp
objects. It specifies whether a particular regular expression
performs global matching; i.e., whether it was created with the
g
attribute.
Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.