Name
RegExp.global: whether a regular expression matches globally â 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, 5th 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.