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 below, marked, shows where the expression matches: tutorialpro