<ignoreCase>
Using the ignoreCase flag, your search will be case-insensetive. There will, for example, be no difference between A
and a
.
Usage
<ignoreCase>
Example
const wordToMatch = "My name is Joe";
const codeWithoutFlag = "normal(joe)";
const codeWithFlag = "<ignoreCase> normal(joe)";
regCode.match(codeWithoutFlag, wordToMatch); // null
regCode.match(codeWithFlag, wordToMatch); // "Joe"
Regex
//i