javascript regex replace case insensitive code example
Example: javascript case insensitive regex
// It's the 'i' flag at the end of the expression.
/hello world/.test('Hello World'); // False
/hello world/i.test('Hello World'); // True
// It's the 'i' flag at the end of the expression.
/hello world/.test('Hello World'); // False
/hello world/i.test('Hello World'); // True