Regular Expression Ignore Case Property

The Regular Expression Ignore Case property is a read-only property that indicates the value of the ignoreCase attribute of an instance of the regular expression object. The value it returns depends on the attribute:

  • The value i is an attribute of the regular expression. It returns the following value:

    True

  • The value i is not an attribute of the regular expression. It returns the following value:

    False

Format

regexp.ignoreCase

The following example uses the Regular Expression Ignore Case property:

// Create RegExp instance with ignoreCase attribute.
var pat = /^Begin/i;
//or
var pat = new RegExp("^Begin", "i");
//Then pat.ignoreCase == true.