i'm using regex for filtering some contents.
var word = new RegExp(filterWord,"gi");// "gi" means Global and insensitive
content = content.replace(word, "");//removes "word" from content
This code works properly but when regex get uppercase "İ" it dont replace word.
ex: if
filterWord = istanbul
and
content = "İstanbul";
Above code not working properly , if i write istanbul to İstanbul ,it is working but this time it is not insensitive , how can i solve this problem ?