From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript RegExp Object
The i modifier is used to perform case-insensitive matching.
|
new RegExp("regexp","i") or simply: /regexp/i |
ExampleDo a case-insensitive search for "w3schools" in a string:
The marked text below shows where the expression gets a match:
Try it yourself » |
JavaScript RegExp Object
From http://www.w3schools.com (Copyright Refsnes Data)