JavaScript RegExp Object
The i modifier is used to perform case-insensitive matching.
![]()
The i modifier is supported in all major browsers.
Do a case-insensitive search for "w3schools" in a string:
The marked text below shows where the expression gets a match:
JavaScript RegExp Object
Your message has been sent to W3Schools.