Do a case-insensitive search for "w3schools" in a string:
The marked text below shows where the expression gets a match:
The i modifier is used to perform case-insensitive matching.
Tip: Use the ignoreCase property to check whether or not the "i" modifier is set.
The i modifier is supported in all major browsers.