Returns the string that removed all occurrences in the given text, case-insensitive
Optional
the text to inspect
the string or regex to match
the string that removed all occurrences in the given text, case-insensitive
removeAllIgnoreCase(undefined, undefined); // undefinedremoveAllIgnoreCase('foobar-foobar', undefined); // 'foobar-foobar'removeAllIgnoreCase('foobar-foobar', 'BAR'); // 'foo-foo' Copy
removeAllIgnoreCase(undefined, undefined); // undefinedremoveAllIgnoreCase('foobar-foobar', undefined); // 'foobar-foobar'removeAllIgnoreCase('foobar-foobar', 'BAR'); // 'foo-foo'
Returns the string that removed all occurrences in the given text, case-insensitive