I am writing a replace function in javascript taking an account in word boundary
blog = blog.toLowerCase().replace(new RegExp("\\b" + wordList[i].toLowerCase() + "\\b", 'g'), "value to replace");
Now it is CASE SESITIVE Replace. I want to make it CASE INSENSITIVE .
How can i do this?
Although for case insensitive there \ I exist, but I donβt know how to put it in my code
Any help is appreciated.
source share