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