Easy Tutorial
❮ Met Document Createattribute Jsref Setmonth ❯

JavaScript RegExp i Modifier


Definition and Usage

The i modifier is used to perform a case-insensitive match.

Syntax


Browser Support

All major browsers support the i modifier.


Example

Perform a case-insensitive search for "tutorialpro" in a string:

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

The text marked below shows where the expression matches: tutorialpro


❮ Met Document Createattribute Jsref Setmonth ❯