Easy Tutorial
❮ Prop Style Background Jsref Isinteger Number ❯

JavaScript ignoreCase Property


Definition and Usage

The ignoreCase property indicates whether the "i" flag is set.

It returns true if the "i" flag is set, otherwise it returns false.

Syntax


Browser Support

All major browsers support the ignoreCase property.


Example

Check if the "i" flag is set:

var str = "Visit tutorialpro!";
var patt1 = /RUN/i;

if (patt1.ignoreCase) {
    document.write("i mode is set!");
} else {
    document.write("i mode is not set!");
}

❮ Prop Style Background Jsref Isinteger Number ❯