Name

global, ignoreCase — NN 4 IE J3 ECMA n/a

Synopsis

Read-only

Returns whether the object had the g or i modifiers set when it was created. If a regular expression object has both modifiers set (gi), you must still test for each property individually.

Example

if (myRE.global && myRE.ignoreCase) {
    ...
}

Value

Boolean.

Get Dynamic HTML: The Definitive Reference 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.