ignoreCase

Whether or not the "i" flag is used with the regular expression. The ignorecase property is read-only.

Property of

RegEx

Description

ignoreCase is a property of an individual regular expression object.

The value of ignoreCase is true if the "i" flag is used; otherwise, it is false. The "i" flag indicates that case should be ignored while attempting a match in a string.

You cannot change this property directly. However, calling the compile method changes the value of this property.